This is the documentation for Enlighten.
module File Handling
Classes
Name | Description |
|---|---|
The file manager deals with locating resources given a path and a filename. |
Enums
Name | Description |
|---|---|
To avoid pulling in the entire stdio header, use our own values for GeoFSeek. |
Typedefs
Name | Description |
|---|---|
void(* FileOpenCallback)(const char *path, const char *mode) | path: path to the file being opened. |
__int64 offset_t | A offset type, similar to size_t (off_t is not supported on all used platforms) |
Functions
Name | Description |
|---|---|
Checks that testFile exists. | |
Checks that testFile exists and is newer than exemplarFile. | |
Checks that the file named filename can be written to. | |
Free a previously loaded file. | |
Construct a filename for use in the underlying platform filesystem API. | |
Delete a file. | |
Creates a directory and all the directories leading up to it. | |
A safe alternative to fclose. | |
A safe alternative to feof. | |
A safe alternative to ferror. Returns a non-zero value to indicate an error. | |
GeoFOpen. | |
A safe alternative to fread. | |
A safe alternative to fseek. | |
A safe alternative to ftell. | |
A safe alternative to fwrite. | |
Rename a file. | |
Get the previously set file system prefix for the current platform. | |
Invoke the file open callback, if set. | |
A safe alternative to ferror. | |
Load a file and append a null terminator. | |
Save a file. | |
Set the function to be called when a file is opened, or a null pointer to disable the callback. | |
Set a file system prefix for the current platform. |