25 #ifndef __UTILS_SYSTEM_FILE_H_
26 #define __UTILS_SYSTEM_FILE_H_
28 #include <core/exception.h>
const char * filename() const
Get the file's name.
File(const char *filename, FileOpenMethod method=APPEND)
Constructor.
FILE * stream() const
Get access to the file stream.
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
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.