Abstraction of a file.
More...
Abstraction of a file.
- See also
- Stream
- Examples:
- Machine/main.cpp, and SystemMode/main.cpp.
bool EndOfStream |
( |
| ) |
const |
|
virtual |
Query if end of stream.
- Returns
- true if it is, false if it isn't.
Implements Stream.
Flushes the file.
Implements Stream.
Int32 GetPosition |
( |
| ) |
const |
|
virtual |
Gets the current position of the cursor in the file.
- Returns
- The position.
Implements Stream.
bool IsModeRead |
( |
| ) |
const |
Query if the file is in mode read.
- Returns
- true if mode read, false if not.
Query if the file is open.
- Returns
- true if open, false if not.
Opens the given file.
- Parameters
-
fileName | Filename of the file. |
mode | The mode. |
- Returns
- true if it succeeds, false if it fails.
Reads the character.
- Returns
- The character.
Implements Stream.
void WriteChar |
( |
Char8 |
c | ) |
|
|
virtual |
Writes a character.
- Parameters
-
Implements Stream.