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