File.h 247 B

12345678910111213141516171819202122
  1. #ifndef FILE_H
  2. #define FILE_H
  3. #include <string>
  4. using namespace std;
  5. class File
  6. {
  7. public:
  8. File(string path);
  9. File(const File& orig);
  10. virtual ~File();
  11. bool exists();
  12. string read();
  13. private:
  14. string path;
  15. };
  16. #endif