Skip to content

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

Notifications You must be signed in to change notification settings

joonseok/ini-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 

Repository files navigation

Ini File Parser

.Net library for managing data from a an INI file format the easy way!

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);

Enjoy!

Copyright (c) 2008 Ricardo Amores Hernández

About

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

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors