Skip to content

burmaraider/INIReader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A lightweight, easy to use INI file reader

GitHub code size in bytes GitHub top language GitHub pull requests

AboutInstallationFunctionsFeaturesSupportLicense


About

INIReader is a lightweight and easy to use INI file parser written in C++. It was designed because I simply didn't like the other offerings, but also to learn some C++.

It is a single header and cpp file. Easy to include in any project and will compile on any compiler.

INIReader Sample

(Preview)

Installation

Downloading and installing steps:
  • Download the latest version of the INIReader.
  • Include INIReader.h to your project
    • Setup a new INIReader object INIReader inifile.
    • That's it!

Functions:

  • ReadFile - Reads file based on the filename you supply
  • SaveFile - Saves file based on the filename you supply
  • AddSection - Adds a new [Section] to the internal list
  • AddKeyValue - Adds a new Key = Value pair to the [Section] specified
  • RemoveKeyValueFromSection - Removes Key = Value pair to the [Section] specified
  • RemoveSection - Removes [Section] and any Key = Value pair associated
  • GetValueFromKey - Retrieves the value from Key = Value pair from [Section] specified
  • PrintFileDebug - Spits out the file using printf

Features

🔩 INIReader ◾ Other INI Readers
Small ✔️ ✔️
Lightweight ✔️ ✔️
Easy to use ✔️

Not exactly the best in the world, but it gets the job done.

Support

Reach out to me at one of the following places if you so wish:

License

License: LGPL v3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages