INI file access from Ruby

S

Stephan Kämper

Hi all,

if you need to parse/access INI files - what are you using? (whatever
your OS/Windows ;-) may be)

I tried the one coming with the WinInstaller (by Andy & Dave).
(Had to apply some changes because I need to access the files
with absolute paths, to allow a bit more comment parsing...)


One of the RAA possibilities doesn't seem to be anymore

http://raa.ruby-lang.org/list.rhtml?name=inifile

Anything I haven't noticed?

Cheers

StePhan
 
T

Takashi & Kayoko Sano

Hi,

Stephan Kämper said:
if you need to parse/access INI files - what are you using? (
whatever
your OS/Windows ;-) may be)

I tried the one coming with the WinInstaller (by Andy & Dave).
(Had to apply some changes because I need to access the files
with absolute paths, to allow a bit more comment parsing...)

I don't know what's included in the PragProg installer for
INI file manipulation, but here's an alternative:

- inifiles.rb
You can download this file from the page below (though it's in
Japanese, you can see the link shown as "inifiles.rb".):

http://homepage1.nifty.com/a_nakata/ruby/

This utilizes Windows API for INI file manipulation via WIN32API.

Hope this helps,

Takashi

-------------------------------------
Technical Writer/Translator
Takashi Sano
E-mail: (e-mail address removed)
URL: http://www3.kcn.ne.jp/~tksano/
-------------------------------------
 
S

Stephan Kämper

.....

Takashi, Rob thanks for your answers.

I think I'll go off and take this as a "training program" for the Test-Driven-Development
book I just finished, and build a small INI file thing myself...

Bye

Stephan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top