Simple parser for INI files
-
Clone repo
$ git clone https://github.com/bjornus/Radon
-
Open Radon project, compile them in Release mode
-
Attach to project
radon::File file("File.ini");
std::shared_ptr<Section> section = file.getSection("section");
std::string value = section->getKey("key").getStringValue();
radon::File file("file.ini");
std::string value = file.getSection("section")->getKey("key").getStringValue();
radon::File file("file.ini");
file.addSection(new Section("section"));
file.getSection("section")->addKey("key");
file.getSection("section")->getKey("key")->setValue("Value");
file.saveToFile();