![]() TGE Version 1.5.2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
File Class Reference#include <fileio.h>
Member Enumeration Documentation
What is the status of our file handle?
Constructor & Destructor Documentation
This is here to disable the copy constructor.
Default constructor.
Destructor.
Member Function Documentation
Opens a file for access using the specified AccessMode.
Gets the current position in the file. This is in bytes from the beginning of the file. Sets the current position in the file. You can set either a relative or absolute position to go to in the file.
File *foo; ... set up file ... // Go to byte 32 in the file... foo->setPosition(32); // Now skip back 20 bytes... foo->setPosition(-20, false); // And forward 17... foo->setPosition(17, false);
Returns the size of the file.
Make sure everything that's supposed to be written to the file gets written.
Closes the file.
Gets the status of the file.
Reads "size" bytes from the file, and dumps data into "dst". The number of actual bytes read is returned in bytesRead
Writes "size" bytes into the file from the pointer "src". The number of actual bytes written is returned in bytesWritten
Returns whether or not this file is capable of the given function.
Called after error encountered.
Field Documentation
Pointer to the file handle.
Current status of the file (Ok, IOError, etc.).
Keeps track of file capabilities.
|