|
Public Member Functions |
| virtual ErrCode | Close (void) |
| | Closes the file.
|
| virtual ErrCode | Open (HFilename fs, uint32 uFlags=(O_BINARY|O_CREAT|O_RDWR)) |
| | Opens the file.
|
| virtual uint32 | Read (HMemory &buffer) |
| | Reads binary data in from the file.
|
| virtual uint32 | Read (void *pData, const uint32 uBytes) |
| | Reads binary data in from the file.
|
| virtual int32 | ReadLine (TextPtr pszLine, const uint32 uMaxLen) |
| | Reads a line of text from a file.
|
| int32 | Seek (int32 lOffset, const int nFrom) const |
| | Moves the file pointer to an absolute or relative offset.
|
| virtual uint32 | Write (PtrConst pData, uint32 uBytes) const |
| | Writes binary data out to the file.
|
| virtual uint32 | Write (HMemory const &buffer) const |
| | Writes binary data out to the file.
|
| virtual uint32 | WriteLine (StringPtr pstr=NULL) const |
| | Writes a string out to the file.
|
| bool | IsAtEOF (void) const |
| | Determines if the file is at the EOF.
|
| bool | IsBinary (void) const |
| | Determines if a file was opened in binary mode.
|
| bool | IsOpen (void) const |
| | Determines if a file is open or not.
|
| bool | IsWritable (void) const |
| | Determines if a file was opened for writing.
|
Static Public Member Functions |
| static ErrCode | Delete (const HFilename &fs) |
| | Deletes ("unlinks") a file.
|
| static bool | Exists (const HFilename &fs) |
| | Determines if a file exists and is accessible.
|
| static ErrCode | GetAppDirectory (HFilename &fsAppDir) |
| | Returns the folder the application was started in...
|
| static ErrCode | GetLength (const HFilename &fs, uint32 &uBytes) |
| | Returns the length of the file in bytes.
|
Protected Attributes |
|
bool | m_bEOF |
| | Flag to signify end of file hit.
|
|
FILE * | m_pFile |
| | File ptr.
|
|
uint32 | m_uFlags |
| | Flags used to open the file.
|