My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages
Links

INI File parsing library

Manage data from a an INI file format the easy way!


Project has been Migrated to Git SVC

The repository has been migrated from Subversion to Git, please update your code base!

See also the Repository Structure page to learn how branches are organiced.


Allows reading / writing INI data to and from I/O streams, file streams and/or plain strings.

The library is really simple to use. Ini data is stored in nested dictionaries, so accessing the value associated to a key in a section is straightforward:

// Load ini file
IniData data = parser.LoadFile("TestIniFile.ini");

// Retrieve the value for the key with name 'fullscreen' inside a config section named 'ConfigSection'
// values are always retrieved as an string
string useFullScreen = data["ConfigSection"]["fullscreen"];

// Modify that very same value
data["ConfigSection"]["fullscreen"] = "true";

// save a new ini file
parser.SaveFile("NewTestIniFile.ini", data);
Powered by Google Project Hosting