Re: File Reading



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
.



Relevant Pages

  • Re: File Reading
    ... blehMoo = Something ... BlehMeow = SomethingElse ... BlehWoff = SomethingElseAgain ...
    (comp.lang.java.programmer)
  • Re: File Reading
    ... blehMoo = Something ... BlehMeow = SomethingElse ... BlehWoff = SomethingElseAgain ...
    (comp.lang.java.programmer)
  • Re: File Reading
    ... blehMoo = Something ... BlehMeow = SomethingElse ... BlehWoff = SomethingElseAgain ...
    (comp.lang.java.programmer)
  • File Reading
    ... blehMoo = Something ... BlehMeow = SomethingElse ... BlehWoff = SomethingElseAgain ...
    (comp.lang.java.programmer)