Crash893
Apr 23rd, 2007, 07:19 PM
Hi all
I am trying to read 2 values from an Ini file
I am useing the class from this web page ( i can post the source if you dont want to download it)
but when i use the lines
IniReader ini = new IniReader(@"\\filervoca\groups\edit\public\iPass\Billpass config\billpass25.ini");
ini.Write("Section1", "KeyString", "PR AD CI GC MK ED FI IT HR DC UW UN");
ini.Write("Section1", "KeyTest", @"c:/test.txt");
string str = ini.ReadString("Section1", "KeyString");
string tem = ini.ReadString("Section1", "KeyTest");
And the first line (string str) works fine
the second line (string tem) Will not pick up th evalue no mater what i do
It writes the value fine
if i change the varables to match STR exactly ( Section1, KeyString) it still will not pick up a value.
If i change STR variables to the KeyTest it will pick up the correct variable
It seems like it just doesnt like being used twice
so i even went as far to delcare the class again in a diffrent section of code as INI2 and still it wont work.
any ideas
im really stuck
I am trying to read 2 values from an Ini file
I am useing the class from this web page ( i can post the source if you dont want to download it)
but when i use the lines
IniReader ini = new IniReader(@"\\filervoca\groups\edit\public\iPass\Billpass config\billpass25.ini");
ini.Write("Section1", "KeyString", "PR AD CI GC MK ED FI IT HR DC UW UN");
ini.Write("Section1", "KeyTest", @"c:/test.txt");
string str = ini.ReadString("Section1", "KeyString");
string tem = ini.ReadString("Section1", "KeyTest");
And the first line (string str) works fine
the second line (string tem) Will not pick up th evalue no mater what i do
It writes the value fine
if i change the varables to match STR exactly ( Section1, KeyString) it still will not pick up a value.
If i change STR variables to the KeyTest it will pick up the correct variable
It seems like it just doesnt like being used twice
so i even went as far to delcare the class again in a diffrent section of code as INI2 and still it wont work.
any ideas
im really stuck