Re: File IO -- Reading Config Files Easily



On 2006-03-30, Hal Vaughan penned:

The programmer was using something in the Java API to easily read this in
and use the value pairs for setting variables, or maybe for setting values
in something like a HashMap or Vector. I can't remember what he used or
what it was called, but it was a basic shortcut from having to read the
file line by line, split each line on the "=", and parse the results.

Any help on what would do this or what to call it?


I think you're talking about using a Properties file.

http://javaalmanac.com/egs/java.util/Props.html

--
monique

Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
.