#include <iostream>
#include <libconfig.h++>
#include "xdgcfg.hpp"
int main()
{
"xdgcfg");
{
std::cout << "File not found.\n";
}
libconfig::Config &cfg = config.
get_cfg();
libconfig::Setting &root = cfg.getRoot();
if (!root.exists("Hello"))
{
root.add("Hello", libconfig::Setting::TypeString) = "World";
}
{
std::cerr << "Writing failed.\n";
}
std::cout << "Hello: " << root["Hello"].c_str() << std::endl;
}