25 #ifndef __UTILS_SYSTEM_FILE_H_ 26 #define __UTILS_SYSTEM_FILE_H_ 28 #include <core/exception.h> 50 File(
const char *filename, FileOpenMethod method = APPEND);
53 FILE * stream()
const;
54 const char * filename()
const;
56 static bool exists(
const char *filename);
57 static bool is_regular(
const char *filename);
Fawkes library namespace.
Opening a file failed for some reason.
UnableToOpenFileException(const char *filename, int error)
Constructor.
FileOpenMethod
What to do when a file with the same name already exists.
overwrite the existing file
Base class for exceptions in Fawkes.
append data at the end of the existing file