Click to See Complete Forum and Search --> : Reading an INI file


kannanbalu
May 12th, 2000, 10:52 AM
Hi all,
I have an INI file containing sections,where
each section contains key-value pair. for e.g.

[DATABASEINFO]
DatabaseName=xxx
UserId=yyy
URL=zzz

Is there any class in Java that can get me the
keys and values for a specific section. I tried
using the Properties class, but it doesn't
support sections. It gets me the key-value pair
if no sections are present. With sections, it
totally messed up things.

Any suggestions!!!

Thanks
Kannan

poochi
May 12th, 2000, 10:55 AM
Hi kannan,

There is an article related to this topic in code guru. Check whether it's useful to you ..

http://codeguru.developer.com/java/articles/655.shtml

Poochi..

kannanbalu
May 12th, 2000, 02:07 PM
Hi Poochi,
Thanks a lot. It was indeed useful to me.

Kannan