posted 20 years ago
I am writing to a properties file that is in sections. i.e.
[SectionName]
key.keyidentifier=value
[SecondSectionName]
another.key=value
My question is, when changing a property and writing it back to the file I can't seem to maintain this structure. The keys with values go to the top of the file and the sections go to the middle. How do I write to the file and keep the file layout the same?
Thanks,
Rachel