#include <rtstreams.h>
Inheritance diagram for lrt::FileOutputStream:

Public Methods | |
| FileOutputStream (const String &fileName, bool append=false) | |
Creates a FileOutputStream which writes data to the file denoted by its name fileName. More... | |
| FileOutputStream (const File &file, bool append=false) | |
Creates a FileOutputStream which writes data to the file denoted by its file descriptor file. More... | |
| virtual bool | write (int b) |
| Writes a byte to the file. | |
| virtual bool | write (const Array< char > &b, int off, int len) |
| Writes part of an array to the file. | |
| virtual bool | write (const Array< char > &b) |
| Writes the whole array b to the output stream. More... | |
| virtual void | flush () |
| Flushes the system's output buffer (if it exists) for this file. | |
| virtual void | close () |
| Closes the system output stream. | |
| virtual | ~FileOutputStream () |
It supports opening files in either overwrite or append mode.
|
||||||||||||
|
Creates a FileOutputStream which writes data to the file denoted by its name
Note that you should always separate paths with forward slashes '
|
|
||||||||||||
|
Creates a FileOutputStream which writes data to the file denoted by its file descriptor
|
|
|
Writes the whole array b to the output stream. Since String is derived from Array<char> in libRT, you may also use this method to write Strings to the output stream.
Reimplemented from lrt::OutputStream. |