How to read and write data from .ini file in C#.Net Windows application?

Unanswered How to read and write data from .ini file in C#.Net Windows application?

  • Wednesday, January 30, 2013 1:21 PM
     
     
    please post an example

All Replies

  • Wednesday, January 30, 2013 5:24 PM
     
     
    Use System.Configuration and XML config files instead, or at least migrate to use the registry. If you really want to interop with windows 3.x code, check http://pinvoke.net/default.aspx/kernel32.WritePrivateProfileString. 


    Visual C++ MVP