a tiny c++ ini parser
main.ini
[server]
ip = 127.0.0.1
port = 80
main.cpp
#include <iostream>
using namespace std;
#include "IniFile.h"
using namespace yazi::utility;
int main()
{
// load ini file
const string & filename = "./main.ini";
IniFile ini(filename);
const string & ip = ini.get("server", "ip");
int port = ini["server"]["port"];
return 0;
}