25 #ifndef __UTILS_SYSTEM_FILE_H_ 26 #define __UTILS_SYSTEM_FILE_H_ 28 #include <core/exception.h> File(const char *filename, FileOpenMethod method=APPEND)
Constructor.
const char * filename() const
Get the file's name.
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.
add a suffix (starting with ".1") to the given filename
overwrite the existing file
Base class for exceptions in Fawkes.
append data at the end of the existing file
FILE * stream() const
Get access to the file stream.
static bool exists(const char *filename)
Check if a file exists.
static bool is_regular(const char *filename)
Check if a file is a regular file.