这有一个ini文件的例子
[root]
role = administrator
last_login = 2003-05-04
[joe]
role = author
last_login = 2003-05-13
读取文件,改变他的内容
IniEditor users = new IniEditor();
users.load("users.ini");
users.set("root", "last_login", "2003-05-16");
users.addComment("root", "Must change password often");
users.set("root", "change_pwd", "10 days");
users.addBlankLine("root");
users.save("users.ini");
运行之后文件变为
[root]
role = administrator
last_login = 2003-05-16
# Must change password often
change_pwd = 10 days
[joe]
role = author
last_login = 2003-05-13
对section支持