entao_ini 1.0.0
entao_ini: ^1.0.0 copied to clipboard
ini file read and write.
Ini file read and write #
Usage #
host=google.com
port = 8080 ; this is comment
[account]
; this is another\
comment
type= "admin"
user= entao \
yang
[group]
dept=dev
desc= this is desc\;\n newline
IniFile ini = IniFile.parse(s);
println(ini);
println();
ini.put("dept", "test", section: "group");
String out = ini.toString();
println(out);
test("Ini file test", () {
expect("google.com", ini.get("host"));
expect("8080", ini.get("port"));
expect("entao \nyang", ini.get("user", section: "account"));
expect("admin", ini.get("type", section: "account"));
expect("test", ini.get("dept", section: "group"));
expect("this is desc;\n newline", ini.get("desc", section: "group"));
});