Functions | |
FILE | otFILE.fopen (const char *filename, int fileAccessMode) |
bool | otFILE.fclose (FILE f) |
U32 | otFILE.fsize (FILE f) |
U32 | otFILE.fsize (const char *filename) |
bool | otFILE.fread (FILE f, void *buffer, U32 len, U32 &rlen) |
bool | otFILE.fwrite (FILE f, void *buffer, U32 len, U32 &wlen) |
bool | otFILE.fseek (FILE f, U32 pos) |
U32 | otFILE.ftell (FILE f) |
bool | otFILE.fputs (const char *text, FILE f, U32 *written=0) |
char * | otFILE.fgets (char *buffer, U32 bufferSize, FILE f) |
bool | otFILE.fputc (char ch, FILE f) |
char | otFILE.fgetc (FILE f, bool *ok=0) |
char * | otFILE.fgetline (FILE f, U32 maxLen=4096, char eol= '\n') |
bool | otFILE.ftruncate (FILE f) |
bool | otFILE.fsync (FILE f) |
bool | otFILE.feof (FILE f) |
int | otFILE.fprintf (FILE f, const char *fmt,...) |
int | otFILE.fscanf (FILE f, const char *fmt,...) |
bool | otFILE.fsave (const char *filename, void *src, U32 len) |
bool | otFILE.fsave (FILE f, const char *data, U32 n) |
bool | otFILE.fsave (FILE f, U8 data) |
bool | otFILE.fsave (FILE f, U16 data) |
bool | otFILE.fsave (FILE f, U32 data) |
bool | otFILE.fload (FILE f, U8 &data) |
bool | otFILE.fload (FILE f, U16 &data) |
bool | otFILE.fload (FILE f, U32 &data) |
void * | otFILE.fload (const char *filename, U32 &len, bool &ok) |
FINF | otFILE.fnew () |
void | otFILE.fend (FINF d) |
|
Closes an open file.
|
|
Free a file info data structure
|
|
Function tests for end-of-file on a file.
|
|
Gets a character from the file.
|
|
Extracts characters from is and stores them into string until the delimitation character eol is found
|
|
Reads a string from the file.
|
|
Open a file and read requested number of bytes to be stored in a buffer. The buffer is automatically allocated.
|
|
Read a double word from an opened file.
|
|
Read a word from an opened file.
|
|
Read a byte from an opened file.
|
|
Create a file info data structure
|
|
Function opens a file.
|
|
Function writes formatted string to the file.
|
|
Puts a character to the file.
|
|
Writes a string to the file.
|
|
Reads data from a file.
|
|
Write a double word in a opened file.
|
|
Write a word in a opened file.
|
|
Write a byte in a opened file.
|
|
Save in a opened file data
|
|
Create a file and save a buffer on it.
|
|
Reads data from the stream and stores them according to the parameter format into the locations pointed by the additional arguments.
|
|
This function moves the file read/write pointer of an open file object. It can also be used to expand the file size (cluster pre-allocation).
|
|
Gets the size of a file.
|
|
Gets the size of a file.
|
|
Function flushes the cached information of a writing file.
|
|
The ftell function gets the current read/write pointer of a file.
|
|
Function truncates the file size.
|
|
Writes data to a file.
|