Click to See Complete Forum and Search --> : Reading/Writing Initialization files (*.INI)


Leo Ayala
June 2nd, 2002, 11:28 AM
I'm new to C# and I'm building one of my first applications that require reading from that has a structure simila to an *.INI file. I could not find any information in the MSDN CD regarding any read/write methods. I know that this is available in VC++ 6 and previous versions since I already have a similar application built in VC++ 6. Is this something that is not supported under C#? Will I have to create my own methods to do this?

Please help.

LA

Arild Fines
June 3rd, 2002, 10:01 AM
P/Invoke the Win32 functions for INI file reading -- eg GetPrivateProfile*

Leo Ayala
June 3rd, 2002, 11:56 AM
I've tried using some of the methods such as GerPrivateProfileInt() but it was not recognized. Do I need to include some other files/namespaces for this to work?

LA

Arild Fines
June 4th, 2002, 09:39 AM
Look at ms-help://MS.NETFrameworkSDK/cpguidenf/html/cpconconsumingunmanageddllfunctions.htm