Skip to content

MrFibunacci/SimpleConfigFileReadWrite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Config File Read and Write Library

Super simple-to-use lib for reading varius config files that are based on key-value pairs.

I currently plan to sport the following config file types:

  • YAMAL
  • TOML
  • INI
  • JSON maybe

Build

From root directory cd into the build directory and run:

  1. cmake ..
  2. make .

Then we can use the generated executable in build/catch_tests/catch_tests_run to run the tests or link the build/src/libscfrw.a file in your project to use the lib.

Usage Example

#include "scfrw.h"

int main() {
    
    std::string value = scfrw_read("path/to/your/file.ini", "keyToReturn");
    
    // do something with value
    
    return 0;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published