Library for parsing configuration files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
config/test/test.cpp

18 lines
344 B

#include <iostream>
#include "../lib/config.hpp"
#include <unistd.h>
using namespace std;
using namespace marcelb;
int main() {
config mycfg ("../example/config.cfg", {"Username", "API", "Domain" });
cout << mycfg["consolePrintLogs"];
mycfg.update("Baba2", "Janja");
cout << mycfg["Baba"];
sleep(10000);
return 0;
}