X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/717b9bf234a20c491e0c9ee8f2c1bffad56a59c5..96bcf4f9cc8401fc499215bbe9181c351cc42d43:/include/wx/textfile.h diff --git a/include/wx/textfile.h b/include/wx/textfile.h index 84042ca019..0f9ec816a3 100644 --- a/include/wx/textfile.h +++ b/include/wx/textfile.h @@ -45,7 +45,7 @@ enum wxTextFileType wxTextFileType_Os2 // 'CR' 'LF' }; -WX_DEFINE_ARRAY(wxTextFileType, ArrayFileType); +WX_DEFINE_EXPORTED_ARRAY(wxTextFileType, ArrayFileType); class WXDLLEXPORT wxTextFile { @@ -73,6 +73,10 @@ public: // file operations // file exists? bool Exists() const; + // create the file if it doesn't already exist + bool Create(); + // same as Create() but with (another) file name + bool Create(const wxString& strFile); // Open() also loads file in memory on success bool Open(); // same as Open() but with (another) file name