[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

reading from a .ini file

Kishore Rp

7/25/2008 5:33:00 AM

Hi all,
I have a .ini file that looks like below.(in the same directory where
ruby is installed)
[info]
URL=https://172.16.2...
UID=admin
passwd=passwd

In a .rb file, how do i read data from a .ini file.I have installed the
ini-0.1.1.
Pls help
Thank you
Kishore
--
Posted via http://www.ruby-....

6 Answers

Roger Pack

7/25/2008 5:54:00 AM

0

Kishore Rp wrote:
> Hi all,
> I have a .ini file that looks like below.(in the same directory where
> ruby is installed)
> [info]
> URL=https://172.16.2...
> UID=admin
> passwd=passwd
>
> In a .rb file, how do i read data from a .ini file.I have installed the
> ini-0.1.1.
> Pls help
> Thank you
> Kishore

Have you tried googling
ruby ini
?
GL!
-R
--
Posted via http://www.ruby-....

Kishore Rp

7/25/2008 6:11:00 AM

0

Thanks Roger.
i tried googling combinations
lemme try ruby ini.

>
> Have you tried googling
> ruby ini
> ?
> GL!
> -R

--
Posted via http://www.ruby-....

Kishore Rp

7/25/2008 7:08:00 AM

0

got the solution.
Used the parseconfig gem
Kishore Rp wrote:
> Thanks Roger.
> i tried googling combinations
> lemme try ruby ini.
>
>>
>> Have you tried googling
>> ruby ini
>> ?
>> GL!
>> -R

--
Posted via http://www.ruby-....

Dejan Dimic

7/25/2008 7:18:00 AM

0

On Jul 25, 9:07 am, Kishore Rp <kishore...@gmail.com> wrote:
> got the solution.
> Used the parseconfig gem
>
> Kishore Rp wrote:
> > Thanks Roger.
> > i tried googling combinations
> > lemme try ruby ini.
>
> >> Have you tried googling
> >> ruby ini
> >> ?
> >> GL!
> >> -R
>
> --
> Posted viahttp://www.ruby-....

look at http://snippets.dzone.com/posts...

Kishore Rp

7/25/2008 8:30:00 AM

0

WoW..
Thanks a lot...Roger..

Dejan Dimic wrote:
> On Jul 25, 9:07�am, Kishore Rp <kishore...@gmail.com> wrote:
>> >> ?
>> >> GL!
>> >> -R
>>
>> --
>> Posted viahttp://www.ruby-....
>
> look at http://snippets.dzone.com/posts...

--
Posted via http://www.ruby-....

Kishore Rp

7/25/2008 8:31:00 AM

0

Typo error sorry ..Thanks a lot Dejan Dimic

Kishore Rp wrote:
> WoW..
> Thanks a lot...Roger..
>
> Dejan Dimic wrote:
>> On Jul 25, 9:07�am, Kishore Rp <kishore...@gmail.com> wrote:
>>> >> ?
>>> >> GL!
>>> >> -R
>>>
>>> --
>>> Posted viahttp://www.ruby-....
>>
>> look at http://snippets.dzone.com/posts...

--
Posted via http://www.ruby-....