+ wxOutputStream::Sync();
+ m_file->Flush();
+}
+
+wxFileOffset wxFileOutputStream::GetLength() const
+{
+ return m_file->Length();
+}
+
+bool wxFileOutputStream::IsOk() const
+{
+ return wxOutputStream::IsOk() && m_file->IsOpened();
+}
+
+// ----------------------------------------------------------------------------
+// wxTempFileOutputStream
+// ----------------------------------------------------------------------------
+
+wxTempFileOutputStream::wxTempFileOutputStream(const wxString& fileName)
+{
+ m_file = new wxTempFile(fileName);
+
+ if (!m_file->IsOpened())
+ m_lasterror = wxSTREAM_WRITE_ERROR;