So you want, if i understand you, a method to read/write .ini files or something similar. Try this
An INI file handling class using C#[
^]
EDIT:
Ok,try this to read a whole section:
First,add this dll import:
[DllImport("kernel32.dll")]
private static extern int GetPrivateProfileSection(string lpAppName, byte[] lpszReturnBuffer, int nSize, string lpFileName);
and then,add this method:
public string[] IniReadSection(string Section)
{
byte[] buffer = new byte[2048];
GetPrivateProfileSection(Section, buffer, 2048, this.path);
String[] tmp = Encoding.ASCII.GetString(buffer).Trim('\0').Split('\0');
return tmp;
}
That will return a string array with all the keys in that section