Article View: borland.public.jbuilder.java.language
Article #15175Re: Reading INI files.
From: Mica Cooper
Date: Fri, 02 Jul 1999 00:00
Date: Fri, 02 Jul 1999 00:00
43 lines
1355 bytes
1355 bytes
Eric,
I would suggest using a tree and do the following :
rootnode = ini filename
parentnode = section name
childnode = property
valuenode = property value
so for myprogram.ini
[Start]
WINDOWS=1
FONT=Courier
[Finish]
END=ThanksPage
parse it so that..
rootnode=myprogram.ini
parentnode=Start
childnode=WINDOWS
valuenode=1
childnode=FONT
valuenode=Courier
parentnode=Finish
childnode=END
valuenode=ThanksPage
This will give you lots of functionality for large ini's and is very
reusable.
Mica
Eric Advincula wrote in message <7lga7t$17e3@forums.borland.com>...
>I need to read ini files and I was wondering if there is a specific class
to
>do this or do I just use the File IO class? Couldnt find info on it in the
>api's
>
>Thanks
>
>
Technical Details
Message-ID:
<7lihd6$39713@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7lga7t$17e3@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,c248fdff5160d5e3 X-Google-Attributes: gidf74b3,public From: "Mica Cooper" <micac@datatrade.com.removethis> Subject: Re: Reading INI files. Date: 1999/07/02 Message-ID: <7lihd6$39713@forums.borland.com> X-Deja-AN: 496426192 References: <7lga7t$17e3@forums.borland.com> Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: borland.public.jbuilder.java.language