X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a18d02ecd20d33810e380605ee3ec641668176b6..233f10bf15c7201e8733426cffdeb6595df539ae:/include/wx/file.h diff --git a/include/wx/file.h b/include/wx/file.h index df901520ef..5f00e49c11 100644 --- a/include/wx/file.h +++ b/include/wx/file.h @@ -197,6 +197,10 @@ public: bool Write(const wxString& str, const wxMBConv& conv = wxMBConvUTF8()) { return m_file.Write(str, conv); } + // flush data: can be called before closing file to ensure that data was + // correctly written out + bool Flush() { return m_file.Flush(); } + // different ways to close the file // validate changes and delete the old file of name m_strName bool Commit();