Contents Up Previous Next

wxFFileOutputStream

This class represents data written to a file. There are actually two such groups of classes: this one is based on wxFFile whereas wxFileInputStream is based in the wxFile class.

Note that SeekO() can seek beyond the end of the stream (file) and will thus not return wxInvalidOffset for that.

Derived from

wxOutputStream

Include files

<wx/wfstream.h>

See also

wxBufferedOutputStream, wxFFileInputStream, wxFileInputStream

Members

wxFFileOutputStream::wxFFileOutputStream
wxFFileOutputStream::~wxFFileOutputStream
wxFFileOutputStream::IsOk


wxFFileOutputStream::wxFFileOutputStream

wxFFileOutputStream(const wxString& filename, const wxChar * mode="w+b")

Opens the file with the given filename name in the specified mode.

wxFFileOutputStream(wxFFile& file)

Initializes a file stream in write-only mode using the file I/O object file.

wxFFileOutputStream(FILE * fp)

Initializes a file stream in write-only mode using the file descriptor fp.


wxFFileOutputStream::~wxFFileOutputStream

~wxFFileOutputStream()

Destructor.


wxFFileOutputStream::IsOk

bool IsOk() const

Returns true if the stream is initialized and ready.