/confini

confini is a library to read and write configuration/ini files

Primary LanguageC++GNU Lesser General Public License v3.0LGPL-3.0

confini

Build Status Build status codecov License: LGPL v3 Open in Gitpod

confini is a library to read and write configuration/ini files

Remark about the code coverage: Only the library has test coverage. Therefore examples and additional tools are not covered.

Introduction

confini supports:

  • [Sections]
  • Key = Value pairs
  • Comments starting with either # or ;

Example

Include the header:

#include <confini.h>

Open the file:

ConfIniFile<char> File1("test.ini");

Access a config entry:

string strSetting = File1("Section 2", "Key1");

Change a value:

File1("Section 2", "Key1") = "My new value";

Write your configuration back to disk:

File1.savefile();