Parse config file in C/C++

前端 未结 8 547
天涯浪人
天涯浪人 2020-12-03 08:25

I\'m a newbie looking for a fast and easy way to parse a text file in C or C++ (wxWidgets)

The file will look something like this (A main category with \"sub-objects

相关标签:
8条回答
  • 2020-12-03 09:26

    How about trying to make a simple XML file? There are plenty of libraries that can help you read it, and the added bonus is that a lot of other programs/languages can read it too.

    0 讨论(0)
  • 2020-12-03 09:27

    Try Configurator. It's easy-to-use and flexible C++ library for configuration file parsing (from simplest INI to complex files with arbitrary nesting and semantic checking). Header-only and cross-platform. Uses Boost C++ libraries.

    See: http://opensource.dshevchenko.biz/configurator

    0 讨论(0)
提交回复
热议问题