here is class that make ur life easier when reading an INI file :D
when u add this class, u can use it right away..something like this will work
first import some namespace
C#
using Org.Mentalis.Files;
IniReader oINI = new IniReader(PATH_TO_INI_FORMAT_HERE);
Console.WriteLine(oINI.ReadString("DOMAIN", "Name"));
Console.WriteLine(oINI.ReadString("DOMAIN", "SMTP"));
the INI file format will be something like attached, as you see it's name are .txt not .ini, it doesn't matter as long the format is an INI file where u have Section (ie: DOMAIN) and Key (ie: "Name" and "SMTP")
until then
PS: i'm using console application
Comments