Question

I am working with a python program that outputs a file via ConfigParser. I am writing a program in c/c++ that needs access to these config files. Some of the options are multi-line so I can not simply scan the file for "x = y" and strip the "x = " part out.

Is there a ready made solution through a c/c++ library that will allow me to easily read the ConfigParser's files.

I would like a lean solution, possibly in a GPL or similar licence so I can just include it with my code for a complete solution.

Was it helpful?

Solution

The style of file ConfigParser outputs is known as a 'ini file'. This should help you searches.

How to parse ini file with Boost

To get you started.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top