read-write ini file

  • Thread starter Thread starter Paul M
  • Start date Start date
P

Paul M

Hy all

In c# how can I read/write ini file? I need this for back compatibility. Is
possible little example?

For future, what is the best practice to replace ini file? app.config? xml
files??

TIA,
Paul
 
Hello Paul,
You may use full Win32 interoperability in .Net, and make a declaration of
..Net style, then use the API function "GetPrivateProfileString".
 
Back
Top