List of functions in file.inc

Function Description
read_dir
Reads content from directory.
Returns index of next element or 0 when end of dir. is reached.
read_file
Reads line from file. Returns index of next line or 0 when end of file is reached.
write_file
Writes text to file. Function returns 0 on failure.
When line is set to -1, the text is added at the end of file.
delete_file
Deletes file. Function returns 1 on success, 0 on failure.
file_exists
Checks for file. If file exists function returns 1, in other case 0.
rename_file
renames a file.  returns 0 on failure, 1 on success.
if relative true, rename_file will act like other natives which
use the moddir as a base directory.  otherwise, the current directory is
undefined (but assumed to be hlds).
dir_exists
Checks if a directory exists
file_size
Returns a file size in bytes if flag is set to 0.
When flag is set to 1 returns number of lines in the file,
and when flags is 2, function returns 1 if the file ends
with line feed. If file doesn't exist returns -1.
fopen
This function has no description.
fclose
This function has no description.
fread
This function has no description.
fread_blocks
This function has no description.
fread_raw
This function has no description.
fwrite
This function has no description.
fwrite_blocks
This function has no description.
fwrite_raw
This function has no description.
feof
This function has no description.
fgets
This function has no description.
fputs
This function has no description.
fprintf
This function has no description.
fseek
This function has no description.
ftell
This function has no description.
fgetc
This function has no description.
fputc
This function has no description.
fungetc
This function has no description.
filesize
This function has no description.
rmdir
This function has no description.
mkdir
Returns 0 on success, like the POSIX specification
unlink
This function has no description.
open_dir
This function has no description.
next_file
This function has no description.
close_dir
This function has no description.
LoadFileForMe
Loads a file using the LoadFileForMe engine function.

The data is truncated if there is not enough space.  No null-terminator
is applied; the data is the raw contents of the file.
fflush
Flushes a buffered output stream.
GetFileTime
Returns a file timestamp as a unix timestamp.