CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2000
    Posts
    64

    Question Reading/Writing Initialization files (*.INI)

    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

  2. #2
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    265
    P/Invoke the Win32 functions for INI file reading -- eg GetPrivateProfile*

  3. #3
    Join Date
    May 2000
    Posts
    64

    Question Reading/Writing Initialization files (*.INI)

    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

  4. #4
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    265

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured