- Main Page
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# /home/coin/SVN-release/OS-2.3.5/OS/src/OSUtils/OSFileUtil.h

Go to the documentation of this file.

    00001 /* $Id: OSFileUtil.h 2698 2009-06-09 04:14:07Z kmartin $ */
    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 };//class FileUtil
    00092 #endif