Reading from a .ini file

Hi all,
I have a .ini file that looks like below.(in the same directory where
ruby is installed)
[info]
URL=https://172.16.212.73/core
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

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.212.73/core
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

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

Have you tried googling
ruby ini
?
GL!
-R

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

On Jul 25, 9:07 am, Kishore Rp [email protected] wrote:

?
GL!
-R


Posted viahttp://www.ruby-forum.com/.

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

WoW…
Thanks a lot…Roger…

Dejan D. wrote:

On Jul 25, 9:07�am, Kishore Rp [email protected] wrote:

?
GL!
-R


Posted viahttp://www.ruby-forum.com/.

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

Typo error sorry …Thanks a lot Dejan D.

Kishore Rp wrote:

WoW…
Thanks a lot…Roger…

Dejan D. wrote:

On Jul 25, 9:07�am, Kishore Rp [email protected] wrote:

?
GL!
-R


Posted viahttp://www.ruby-forum.com/.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs