Construction Methods
Method | Description |
---|---|
CFile | Constructs a CFile object from a path or file handle. |
Abort | Closes a file ignoring all warnings and errors. |
Open | Safely opens a file with an error-testing option. |
Close | Closes a file and deletes the object. |
Input/Output Methods
Method | Description | |
---|---|---|
Read | Reads (unbuffered) data from a file at the current file position. | |
ReadHuge | Can read more than 64 KB of (unbuffered) data from a file at the current file position. Obsolete in 32-bit programming. See Read. | |
Write | Writes (unbuffered) data in a file to the current file position. | |
WriteHuge | Can write more than 64 KB of (unbuffered) data in a file to the current file position. Obsolete in 32-bit programming. See Write. | |
Flush | Flushes any data yet to be written. |
Position Methods
Method | Description | |
---|---|---|
Seek | Positions the current file pointer. | |
SeekToBegin | Positions the current file pointer at the beginning of the file. | |
SeekToEnd | Positions the current file pointer at the end of the file. | |
GetLength | Retrieves the length of the file. | |
SetLength | Changes the length of the file. |
Status Methods
Method | Description | |
---|---|---|
GetPosition | Retrieves the current file pointer. | |
GetStatus | Retrieves the status of this open file. | |
GetFileName | Retrieves the file name of the selected file. | |
GetFileTitle | Retrieves the title of the selected file. | |
GetFilePath | Retrieves the full file path of the selected file. | |
SetFilePath | Sets the full file path of the selected file. |
Static Methods
Method | Description | |
---|---|---|
Rename | Renames the specified file (static method). | |
Remove | Deletes the specified file (static method). | |
GetStatus | Retrieves the status of the specified file (static, virtual method). | |
SetStatus | Sets the status of the specified file (static, virtual method). |