Menu

#12 Preserve Newlines

open
nobody
None
5
2011-05-25
2011-05-25
Anonymous
No

When parsing and writing back afterwards, the files should be identically.

Ini ini = new Ini();
ini.load(new File("settings_in.ini"));
ini.store(new File("settings_out.ini"));

the files "settings_in.ini" and "settings_out.ini" should be identically - all comments and newlines.

I want to use ini4j in one of my applications, where the user can edit the ini-file manually but the application may change or add some settings too.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.