SimpleINI is, as the name suggests, a simple INI file parser. It is designed to be easy to use and to be fast.
- Easy-to-use API
- Supports comments
- Built-in int, strings and boolean operations
var data = INIParser.Parse(myIniDataAsString);
if(!data.TryGetValue("MyGroup", "Value1", out string value1)) return;
if(!data.TryGetValue("MyGroup", "Value1", out int value1)) return;
if(!data.TryGetValue("MyGroup", "Value1", out bool value1)) return;
data.TryAddGroup("MyGroup"); // Create the group, returns true if it didn't exist
data.TrySetValue("MyGroup", "Value1", "Hello world!"); // Sets a value, returns false if the group does not exist
data.ForceSetValue("MyGroup", "Value1", "Hello World!"); // Sets a value and creates the group if required
data.ForceSetValue("MyGroup", "Value1", true); // Automatically invokes ToString()
var iniDataAsString = data.Stringify();