A direct File implementation, with all methods directly mapped to filesystem calls.
DirectFile explicitly does not use buffering for I/O operations, so, in general, an additional buffering layer is desired when using DirectFile objects.
The contructor. |
The contructor.
Opens a file for reading and writing. The current file position is set to the beginning of the file.
Throws an IOException if the file cannot be opened for some reason.
DirectFile (const char *filename, AccessMode mode = ReadOnly) throw (IOException)
| filename : | A name of the file to be opened. |