Creating a simple configuration file and parser in C++

前端 未结 12 746
谎友^
谎友^ 2020-12-07 10:55

I am trying to create a simple configuration file that looks like this

url = http://mysite.com
file = main.exe
true = 0

when the program ru

12条回答
  •  旧时难觅i
    2020-12-07 11:39

    Why not trying something simple and human-readable, like JSON (or XML) ?

    There are many pre-made open-source implementations of JSON (or XML) for C++ - I would use one of them.

    And if you want something more "binary" - try BJSON or BSON :)

提交回复
热议问题