\membersection{wxFile::Write}\label{wxfilewrites}
-\func{bool}{Write}{\param{const wxString\& }{s}}
+\func{bool}{Write}{\param{const wxString\& }{s}, \param{wxMBConv&}{ conv = wxConvLibc}}
Writes the contents of the string to the file, returns TRUE on success.
+The second argument specifies is only meaningful in Unicode build of wxWindows when
+{\it conv} is used to convert {\it s} to multibyte representation.
+
\section{\class{wxFFile}}\label{wxffile}
wxFFile implements buffered file I/O. This is a very small class designed to
\membersection{wxFFile::Write}\label{wxffilewrites}
-\func{bool}{Write}{\param{const wxString\& }{s}}
+\func{bool}{Write}{\param{const wxString\& }{s}, \param{wxMBConv&}{ conv = wxConvLibc}}
Writes the contents of the string to the file, returns TRUE on success.
+The second argument specifies is only meaningful in Unicode build of wxWindows when
+{\it conv} is used to convert {\it s} to multibyte representation.
\membersection{wxTempFile::Write}\label{wxtempfilewrites}
-\func{bool}{Write}{\param{const wxString\& }{str}}
+\func{bool}{Write}{\param{const wxString\& }{str}, \param{wxMBConv&}{ conv = wxConvLibc}}
Write to the file, return TRUE on success, FALSE on failure.
+The second argument specifies is only meaningful in Unicode build of wxWindows when
+{\it conv} is used to convert {\it str} to multibyte representation.
+
\membersection{wxTempFile::Commit}\label{wxtempfilecommit}
\func{bool}{Commit}{\void}
// I/O (both functions return true on success, false on failure)
bool Write(const void *p, size_t n) { return m_file.Write(p, n) != 0; }
- bool Write(const wxString& str) { return m_file.Write(str); }
+ bool Write(const wxString& str, wxMBConv& conv = wxConvLibc) { return m_file.Write(str, conv); }
// different ways to close the file
// validate changes and delete the old file of name m_strName