It took me 10 seconds with google to find out how to do it "the .NET" way:
http://www.codeproject.com/KB/dotnet/config.aspx
To do it the general way you need to apply some basic thought processes. If you want to create something like LFS uses, or some basic key = value system you need to read the file line by line. Read up until your key delimiter (in this case a = symbol), strip any additional spaces, assign the key in some sort of array or dictionary or some other medium for saving your data. Read the rest of the line, stripping out your delimiter, and assign this as your value for your key in the same array or dictionary, or whatever it is you're using to store your configuration values. If you want to do it this way you need to lookup how to read a file line by line (
Readline from the StreamReader object will do nicely) and then how to split a string (
String.Split). I'm guessing you'll also want information on storing this information, which you can use what some languages would call a
dictionary, or an associative array.
Alternatively you can do it the "ini way", which would either be to write up something that basically does the above, or you can use the win32 api (example here:
http://jachman.wordpress.com/2 ... ccess-ini-files-in-c-net/, or a pre-wrapped class here:
http://www.doogal.co.uk/inifile.php).
Now let me point something out. I don't use any of the .NET languages. I don't have any of the .NET related tools on any of my machines bar the actual framework. I'm not a brilliant programmer at all. The simple fact is that I've spent less time doing some research than you guys have actually spent typing a post(!!!)