All pastes #46468 Raw Edit

Someone

public cpp v1 · immutable
#46468 ·published 2006-03-21 12:20 UTC
rendered paste body
#include <iostream>#include <fstream>using namespace std;//Create config mapstd::map<std::string,std::string> config;int readini (){	ifstream inifile ("./sievemonitor.ini");	if(inifile.is_open()) {		//Read ini data		char line;		cout << "Loading settings from ini file.\n";		while (!inifile.eof())		{      	getline (inifile,line);	      cout << line << endl;		}		inifile.close();		return 1;	} else {		cout << "Could not read from ini file.\n";		cout << "Using default settings.\n";		return 0;	}}int main( int argc, char **argv ){	cout << "Program Started\n";	readini();	return 0;}