Skip to content

Cross platform Ini reader and writer class in C++

Notifications You must be signed in to change notification settings

NuclearC/ini-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ini File

Ini reader and writer class in C++

Usage

#include "ini.h"
...
nc::Ini ini(".\\file.ini");

ini.Load();
// reading
auto node = ini["MySection"]; // returns IniNode
auto value = ini["MySection"]["MyProperty"]; // returns std::string
auto db = std::atoi(ini["MySection"]["MyNumber"].c_str()); // get value as signed 32-bit integer 

// writing
ini["MySection"].Set("property", "value"); // set new property with value

ini.Save(); // save ini file

About

Cross platform Ini reader and writer class in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages