Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 775 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 775 Bytes

Radon

Simple parser for INI files

Installation

  1. Clone repo

    $ git clone https://github.com/bjornus/Radon

  2. Open Radon project, compile them in Release mode

  3. Attach to project

Getting value from INI file

Long version

radon::File file("File.ini");

std::shared_ptr<Section> section = file.getSection("section");

std::string value = section->getKey("key").getStringValue();

Short version

radon::File file("file.ini");

std::string value = file.getSection("section")->getKey("key").getStringValue();

Creating INI files

radon::File file("file.ini");

file.addSection(new Section("section"));
file.getSection("section")->addKey("key");
file.getSection("section")->getKey("key")->setValue("Value");

file.saveToFile();