>In the .Net framework, are there functions for reading and writing the
>key/value pairs in a .ini file?
>
No - you would need to use the API functions through p/invoke...
>
Thanks for the reply. I am using GetPrivateProfi leString():
DWORD GetPrivateProfi leString( LPCTSTR lpAppName, LPCTSTR lpKeyName,
LPCTSTR lpDefault, LPTSTR lpReturnedStrin g, DWORD nSize, LPCTSTR
lpFileName);Whi le my program seems to be working, I am not sure I am using
the correct types, nor the most efficient method to get the lpReturnedStrin g
into a System.String.T hanks for any suggestions on how to prototype
GetPrivateProfi leString() for the [DLLImport ...].
Comment