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