C4 Engine Terathon Software C4 Engine API Documentation

• File Manager

API Links
Developer Links

class File

Defined in:  C4Files.h
The File class is used for reading from and writing to disk files.
Definition

class File

Member Functions
File::Open Opens a file.
File::Close Closes a file.
File::Read Reads data from a file.
File::Write Writes data to a file.
File::GetPosition Returns the current read/write position for a file.
File::SetPosition Sets the current read/write position for a file.
File::GetSize 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::Open 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::Close function.
See Also

File::Open

File::Close

FileMgr