Friday, March 6, 2015

INI Files in C#

Narimani here is another solution, you can use this C# library to read your INI files.


For example here is how you can read all the sections and all the keys inside each section:



IniFile file = new IniFile();
file.Load("your-file-path");

foreach (IniSection section in file.Sections)
{
foreach (IniKey key in section.Keys)
{
// Do some work ...
}
}

No comments:

Post a Comment