read-write ini file

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
 
A

Alan

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top