ini-cpp is a lightweight ".ini" file parser and emitter written in modern C++17. It provides an easy-to-use interface for reading and writing configuration files in the INI file format.
- Parsing and reading ".ini" files into a convenient data structure.
- Accessing and modifying sections, keys, and values programmatically.
- Emitting and writing configuration data back to ".ini" files.
- Error handling for malformed or invalid INI files.
- C++17-compatible compiler
To use ini-cpp in your project, follow these steps:
- Clone or download the ini-cpp repository.
git clone https://github.com/Specyy/ini-cpp.git
- Navigate into the source directory, create build folder and run
CMake
:
cd ini-cpp
mkdir build
cd build
cmake .. [-G generator] [-DINICPP_TEST=ON|OFF]