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
vb Code:
  1. IniReader ini = new IniReader(@"\\filervoca\groups\edit\public\iPass\Billpass config\billpass25.ini");                    
  2. ini.Write("Section1", "KeyString", "PR AD CI GC MK ED FI IT HR DC UW UN");
  3. ini.Write("Section1", "KeyTest", @"c:/test.txt");
  4. string str = ini.ReadString("Section1", "KeyString");
  5. 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