Skip to content

virtmax/iniparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

iniparser

Simple header only parser for INI files.

example

# simple INI file
[window]
name = Super 1000
width = 640
height = 480
list = [2, 7, -3.14]    # a list with numbers

IniParser ini;
ini.parseFile("config.ini");

// get
std::string name = ini["window.name"];
int width = ini["window.width"];

// get a list
std::vector<double> ret = ini.getList("window.list");

// set
ini["window.name"] = "Super 2000";

// write file
ini.save();

Releases

No releases published

Packages

No packages published

Languages