ini files

  • Thread starter Thread starter Duncan Winn
  • Start date Start date
D

Duncan Winn

What is the best way of accessing info from ini files from VC++ (in VS.NET).
 
MFC's CStdioFile is probably the easiest way to open the file if it's in
text...
Then use the readline method to check each line...

You'll want something like a list of keywords, which you can check your read
line against.

Good luck.
Dan.

What is the best way of accessing info from ini files from VC++ (in VS.NET).
 
What is the best way of accessing info from ini files from VC++ (in VS.NET).

Try using the GetPrivateProfileXXX/WritePrivateProfilexxx APIs.

Dave
 
thanks

Andreas Magnusson said:
Or you could use the functions designed for ini-files: GetProfileString,
WriteProfileString, GetProfileSection et al.

/Andreas
 

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

Back
Top