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

17 lines
307 B

2 years ago
#include <iostream>
#include "../lib/config.hpp"
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"];
2 years ago
return 0;
}