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
{
// 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