Re: File Reading
- From: Real Gagnon <realgag+usenet@xxxxxxxxxxxxx>
- Date: Thu, 28 Jun 2007 14:33:03 GMT
I was just wondering what the class was called that allowed you to read
a file in the form:
[blehName]
blehMoo = Something
BlehMeow = SomethingElse
BlehWoff = SomethingElseAgain
[blehName2]
blehMoo = Something
BlehMeow = SomethingElse
BlehWoff = SomethingElseAgain
I remember seeing something that allowed you to do this, but i've
completely forgotten what it was.
That's an INI file. It' a common file structure in the Windows world.
In Java, the corresponding structure is a Properties file.
The main difference is that you can't group entries with [...] with
Properties, you need to add a prefix.
ex:
blehName.blehMoo = Something
blehName.BlehMeow = SomethingElse
blehName.BlehWoff = SomethingElseAgain
blehName2.blehMoo = Something
blehName2.BlehMeow = SomethingElse
blehName2.BlehWoff = SomethingElseAgain
See http://www.rgagnon.com/javadetails/java-0024.html
Bye.
--
Real Gagnon from Quebec, Canada
* Java, Javascript, VBScript and PowerBuilder code snippets
* http://www.rgagnon.com/howto.html
* http://www.rgagnon.com/bigindex.html
.
- References:
- File Reading
- From: M. Hamzah Khan
- File Reading
- Prev by Date: Re: How to refer to method in nested class?
- Next by Date: Re: Reading CSV or Excel files in java and mapping values to database columns
- Previous by thread: Re: File Reading
- Next by thread: Re: File Reading
- Index(es):
Relevant Pages
|