## wxFileOutputStream

This class represents data written to a file. There are actually two such groups of classes: this one is based on wxFile whereas wxFFileInputStream is based in the wxFFile 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, wxFileInputStream, wxFFileInputStream

Members

wxFileOutputStream::wxFileOutputStream
wxFileOutputStream::~wxFileOutputStream
wxFileOutputStream::IsOk

### wxFileOutputStream::wxFileOutputStream

wxFileOutputStream(const wxString& ofileName)

Creates a new file with ofilename name and initializes the stream in write-only mode.

wxFileOutputStream(wxFile& file)

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

wxFileOutputStream(int fd)

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

### wxFileOutputStream::~wxFileOutputStream

~wxFileOutputStream()

Destructor.

### wxFileOutputStream::IsOk

bool IsOk() const

Returns true if the stream is initialized and ready.