0

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.

uMinded
  • 595
  • 1
  • 9
  • 21

1 Answers1

2

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.

Community
  • 1
  • 1
Sean Perry
  • 3,776
  • 1
  • 19
  • 31
  • You know you have been on Linux a long time when your forget what an *.ini file looks like LOL. I ended up using inih from google code. Very small c file. – uMinded Jan 26 '14 at 05:14