Contents Up Previous Next

wxFileInputStream

This class represents data read in from a file. There are actually two such groups of classes: those documented here, and another group called wxFFileInputStream, wxFFileOutputStream and wxFFileStream which are not based on file descriptors (and their wxWindows equivalent wxFile) but the FILE* type (and wxFFile). Apart from the different constructor ("FILE *file" instead if "int fd") their interface is identical.

Derived from

wxInputStream

Include files

<wx/wfstream.h>

See also

wxStreamBuffer (REF NOT FOUND), wxFileOutputStream

Members

wxFileInputStream::wxFileInputStream
wxFileInputStream::~wxFileInputStream
wxFileInputStream::Ok


wxFileInputStream::wxFileInputStream

wxFileInputStream(const wxString& ifileName)

Opens the specified file using its ifilename name in read-only mode.

wxFileInputStream(wxFile& file)

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

wxFileInputStream(int fd)

Initializes a file stream in read-only mode using the specified file descriptor.


wxFileInputStream::~wxFileInputStream

~wxFileInputStream()

Destructor.


wxFileInputStream::Ok

bool Ok() const

Returns TRUE if the stream is initialized and ready.