confini
is a library to read and write configuration/ini files
Remark about the code coverage: Only the library has test coverage. Therefore examples and additional tools are not covered.
confini supports:
[Sections]
Key = Value
pairs- Comments starting with either
#
or;
Include the header:
#include <confini.h>
Open the file:
ConfIniFile<char> File1("test.ini");
Access a config entry:
string strSetting = File1("Section 2", "Key1");
Change a value:
File1("Section 2", "Key1") = "My new value";
Write your configuration back to disk:
File1.savefile();