Hi Logan, I presume that by now you have already achieved this task, but nevertheless I wanted to inform you that I have
a C# library for INI files on GitHub which you can feel free to use.
For example here is how could iterate through all the sections and all the sections's keys:
IniFile ini = new IniFile();
ini.Load("path to your .ini file ...");
foreach (IniSection section in ini.Sections)
{
foreach (IniKey key in section.Keys)
{
string sectionName = section.Name;
string keyName = key.Name;
string keyValue = key.Value;
}
}
Note that the library even supports some more complex tasks out of the box (like compression, encryption, binding, serializing, etc.). Also in case you do decide to try it out sometime note that you can contact me if you need any help with it by posting a reply to
this[
^] post.