Skip to content

Instantly share code, notes, and snippets.

@bonjin6770
Created February 9, 2017 00:17
Show Gist options
  • Save bonjin6770/4f88b2e778c804c2c0f9f90be01bd63a to your computer and use it in GitHub Desktop.
Save bonjin6770/4f88b2e778c804c2c0f9f90be01bd63a to your computer and use it in GitHub Desktop.
private void MakeIniFile(object sender, EventArgs e)
{
string path = "SAMPLE.ini";
var iniData = new IniData();
iniData.Configuration.AssigmentSpacer = "";
var section = new SectionData("SAMPLE");
iniData.Sections.Add(section);
using (var sw = new StreamWriter(path, false))
{
var iniParser = new IniDataParser();
var fileIniData = new FileIniDataParser(iniParser);
fileIniData.WriteData(sw, iniData);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment