-#include <fstream.h>
+#include <fstream>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "extern.h"
+using std::ifstream;
+
void load_config_file(char *config);
void unload_config_file();
infile.open(config);
if (infile.fail())
{
- cerr << "Error opening " << config << endl;
+ log("Error opening %s", config);
return;
}
if (stricmp(directive, "DIE") == 0)
{
value = strtok(NULL, "");
- cerr << value << endl;
+ log("You should read the entire %s file!", config);
exit(0);
}
if (stricmp(directive, "S_GAMESERV") == 0)