X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a1b82138efe9aacda4e0ad7ce4b1551d624524c4..fb20fa43a07ce52feb43a4b26514fc7a6a11a6f5:/include/wx/textfile.h?ds=sidebyside diff --git a/include/wx/textfile.h b/include/wx/textfile.h index a078a518bf..0f9ec816a3 100644 --- a/include/wx/textfile.h +++ b/include/wx/textfile.h @@ -41,10 +41,11 @@ enum wxTextFileType wxTextFileType_None, // incomplete (the last line of the file only) wxTextFileType_Unix, // line is terminated with 'LF' = 0xA = 10 = '\n' wxTextFileType_Dos, // 'CR' 'LF' - wxTextFileType_Mac // 'CR' = 0xD = 13 = '\r' + wxTextFileType_Mac, // 'CR' = 0xD = 13 = '\r' + wxTextFileType_Os2 // 'CR' 'LF' }; -WX_DEFINE_ARRAY(wxTextFileType, ArrayFileType); +WX_DEFINE_EXPORTED_ARRAY(wxTextFileType, ArrayFileType); class WXDLLEXPORT wxTextFile { @@ -72,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