#include <TextFile.h>
Public Methods | |
| TextFile () | |
| Default constuctor. | |
| TextFile (const TextFile &f) | |
| Constuct and open a file. | |
| ~TextFile () | |
| Destructor, closes the file. | |
| const string & | name () const |
| Returns the file name. | |
| unsigned int | line () const |
| Returns the current line number. | |
| bool | eof () |
| Returns true iff end of file has been reached. | |
| int | currentChar () |
| Returns the current cached character. | |
| void | open (const string &name) |
| Opens a text file for reading. More... | |
| void | create (const string &name) |
| . More... | |
| void | close () |
| Creates a text file for writing. More... | |
| void | flush () |
| Flushes the file. | |
| TextFile & | operator<< (const string &line) |
| Writes a string to the text file. More... | |
| int | getChar () |
| Reads and returns the next character. More... | |
|
|
Creates a text file for writing.
|
|
|
.
|
|
|
Reads and returns the next character.
|
|
|
Opens a text file for reading.
|
|
|
Writes a string to the text file.
|