Created
February 9, 2017 00:17
-
-
Save bonjin6770/4f88b2e778c804c2c0f9f90be01bd63a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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