summaryrefslogtreecommitdiff
path: root/src/configfile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/configfile.h')
-rw-r--r--src/configfile.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/configfile.h b/src/configfile.h
index 47ae80b..1513897 100644
--- a/src/configfile.h
+++ b/src/configfile.h
@@ -28,7 +28,7 @@
#include <string>
#include <map>
-#include <stdio.h>
+#include <fstream>
class ConfigFile
{
@@ -45,11 +45,9 @@ public:
protected:
std::map<std::string, std::string> values;
std::string filename;
+ std::fstream current_file;
- virtual bool open(std::string mode);
- void close();
+ virtual bool open(std::ios_base::openmode mode);
std::string readLine();
bool parseLine(const std::string& line);
-
- FILE* fp;
};