class File
Defined in:
The C4Files.h
File
class is used for reading from and writing to disk files.
Definition
class File
Member Functions
File::OpenFile |
Opens a file. |
File::CloseFile |
Closes a file. |
File::ReadFile |
Reads data from a file. |
File::WriteFile |
Writes data to a file. |
File::GetFilePosition |
Returns the current read/write position for a file. |
File::SetFilePosition |
Sets the current read/write position for a file. |
File::GetFileSize |
Returns the current size of a file. |
Constructor
File();
Description
The File
class encapsulates the opening, closing, reading, and writing of disk files. Once a File
object has been constructed, a file can be opened using the File::OpenFile
function. A file is automatically closed when the File
object is destroyed, but it's also possible to explicitly close a file using the File::CloseFile
function.
See Also