Sign in to follow this  

Recommend a lib to read ini or xml files? [gcc/ubuntu]

This topic is 3664 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I bored of rolling my own file interpreters! :) Can anyone suggest a free lib out there which can be used to load variables into an app, sort of line an .ini file in windows? XML may be one answer, since I could have a tree, eg: Display > Size > Width Display > Size > Height Display > Colours Threadpool > maxThreads I'd like a way to be able to load a file as an object then request variables (if they exist, or null if not). Must be loads out there... what do you do? Thanks Simon

Share this post


Link to post
Share on other sites
There are Windows API functions for reading ini files. Look here at the functions named GetPrivateProfilexxxx near the bottom of the page. They aren't fast or portable, but they are very convenient.

Share this post


Link to post
Share on other sites

This topic is 3664 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this