+size_t wxFileOutputStream::DoWrite(const void *buffer, size_t size)
+{
+ size_t ret = m_file->Write(buffer, size);
+ m_bad = m_file->Error();
+ return ret;
+}
+
+off_t wxFileOutputStream::DoTellOutput() const
+{
+ return m_file->Tell();
+}
+
+off_t wxFileOutputStream::DoSeekOutput(off_t pos, wxSeekMode mode)
+{
+ return m_file->Seek(pos, mode);
+}
+
+void wxFileOutputStream::Sync()
+{
+ wxOutputStream::Sync();
+ m_file->Flush();
+}
+
+// ----------------------------------------------------------------------------
+// wxFileStream
+// ----------------------------------------------------------------------------
+
+wxFileStream::wxFileStream(const wxString& fileName)
+ : wxFileInputStream(), wxFileOutputStream()