Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Writes an INI file using Nini

View Nini_Write_File.cs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/*
Shows an example of Nini's IniDocument class to write an INI file. The example below
will write the following INI file "configuration.ini":
[Cars]
model = Toyota
year = 2012
*/
 
Nini.Ini.IniDocument doc = new Nini.Ini.IniDocument();
 
doc.SetSection ("Cars");
doc.SetKey("Cars", "model", "Toyota"));
doc.SetKey("Cars", "year", "2012"));
 
doc.Save("configuration.ini");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.