00001
00016 #ifndef FILEUTIL_H
00017 #define FILEUTIL_H
00018
00019
00020 #include <iostream>
00021 #include <sstream>
00022 #include <fstream>
00023 #include <string>
00024
00038 class FileUtil{
00039 public:
00040 public:
00041
00043 FileUtil();
00044
00046 ~FileUtil();
00047
00054 std::string getFileAsString(const char* fname);
00055
00062 char* getFileAsChar(const char* fname);
00063
00071 bool writeFileFromString(char* fname, std::string thestring);
00072
00080 bool writeFileFromString(std::string fname, std::string thestring);
00081
00089 bool writeFileFromChar(char* fname, char* ch);
00090 };
00091 #endif