00001
00017 #ifndef FILEUTIL_H
00018 #define FILEUTIL_H
00019
00020
00021 #include <iostream>
00022 #include <sstream>
00023 #include <fstream>
00024 #include <string>
00025
00039 class FileUtil{
00040 public:
00041 public:
00042
00044 FileUtil();
00045
00047 ~FileUtil();
00048
00055 std::string getFileAsString(const char* fname);
00056
00063 char* getFileAsChar(const char* fname);
00064
00072 bool writeFileFromString(char* fname, std::string thestring);
00073
00081 bool writeFileFromString(std::string fname, std::string thestring);
00082
00090 bool writeFileFromChar(char* fname, char* ch);
00091 };
00092 #endif