I was surprised that C# doesn't support ini handle but of course i knew that it wouldn't be so hard to do so a simple search gave me this small and easy class to handle simple ini files http://www.codeproject.com/Articles/1966/An-INI-file-handling-class-using-C
iniReadValue returns a string and i want to convert it to integer. I though that a Convert.ToInt32 would work but it doesn so this wont work
int keyclosewindows = Convert.ToInt32(ini.IniReadValue("Key info", "CloseWindows"));
The ini read returns me an integer stored in a string
ini.IniReadValue("Key info", "CloseWindows") //= "1"
I know this is a silly question but unfortunately i can not come up with a solution
Error message:
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll
Additional information: Input string was not in a correct format.