Accessing INI Files in C#
Recently I had the need to access and read in data from the old school style ini file. I was struggling to find the best way to go about doing this, until I came across this blog post by Gerhard Stephan. In it, he describes how to attach to the Windows KERNEL32.dll file and use the Windows functions GetPrivateProfileString and WritePrivateProfileString to read from and write to Windows ini files.