Function | Description |
---|---|
read_dir | Reads content from directory |
read_file | Reads line from file. |
write_file | Writes text to file. |
delete_file | Deletes a file. |
file_exists | Checks if a file exists. |
rename_file | Renames a file. |
dir_exists | Checks if a directory exists. |
file_size | Get the file size in bytes. |
fopen | Opens or creates a file, returning a file handle on success. File handles should be closed with fclose(). |
fclose | Closes a file handle. |
fread | Reads a single binary data from a file. |
fread_blocks | Reads binary data from a file. |
fread_raw | Reads raw binary data from a file. |
fwrite | Writes a single binary data to a file. |
fwrite_blocks | Writes binary data to a file. |
fwrite_raw | Writes raw binary data to a file. |
feof | Tests if the end of file has been reached. |
fgets | Reads a line from a text file. |
fputs | Writes a line of text to a text file. |
fprintf | Writes a line of formatted text to a text file. |
fseek | Sets the file position indicator. |
ftell | Gets current position in the file. |
fgetc | Gets character from file. |
fputc | Writes character to file |
fungetc | Ungets character from file. |
filesize | Gets the formatted file size in bytes. |
rmdir | Removes a directory. |
mkdir | Creates a directory. |
unlink | Deletes a file (delete_file macro) |
open_dir | Opens a directory/folder for contents enumeration. |
next_file | Reads the next directory entry as a local filename. |
close_dir | Closes the directory. |
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. |
SetFilePermissions | Changes a file or directories permissions. |
FileReadInt8 | Reads a single int8 (byte) from a file. The returned value is sign- extended to an int32. |
FileReadUint8 | Reads a single uint8 (unsigned byte) from a file. The returned value is zero-extended to an int32. |
FileReadInt16 | Reads a single int16 (short) from a file. The value is sign-extended to an int32. |
FileReadUint16 | Reads a single unt16 (unsigned short) from a file. The value is zero- extended to an int32. |
FileReadInt32 | Reads a single int32 (int/cell) from a file. |
FileWriteInt8 | Writes a single int8 (byte) to a file. |
FileWriteInt16 | Writes a single int16 (short) to a file. |
FileWriteInt32 | Writes a single int32 (int/cell) to a file. |
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.