reading and writing a properties file
// read properties file.
properties properties = new properties();
try {
properties.load(new fileinputstream(
"infilename"));
} catch (ioexception e) {
}
// write properties file.
try {
properties.store(new fileoutputstream(
"outfilename"), null);
} catch (ioexception e) {
}
here is an example of the contents of a properties file:
# a comment
! a comment
a = a string
b = a string with escape sequences \t
\n \r \\ \" \ \ (space) \u0123
c = a string with a continuation line \
contination line
d.e.f = another string
