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

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