wxTextFileType_Unix;
#elif defined(__WXMAC__)
wxTextFileType_Mac;
+#elif defined(__WXPM__)
+ wxTextFileType_Os2;
#else
wxTextFileType_None;
#error "wxTextFile: unsupported platform."
{
switch ( type ) {
default:
- wxFAIL_MSG(_T("bad file type in wxTextFile::GetEOL."));
+ wxFAIL_MSG(wxT("bad file type in wxTextFile::GetEOL."));
// fall through nevertheless - we must return something...
- case wxTextFileType_None: return _T("");
- case wxTextFileType_Unix: return _T("\n");
- case wxTextFileType_Dos: return _T("\r\n");
- case wxTextFileType_Mac: return _T("\r");
+ case wxTextFileType_None: return wxT("");
+ case wxTextFileType_Unix: return wxT("\n");
+ case wxTextFileType_Dos: return wxT("\r\n");
+ case wxTextFileType_Mac: return wxT("\r");
}
}
// file operations
// ----------------------------------------------------------------------------
+bool wxTextFile::Exists() const
+{
+ return wxFile::Exists(m_strFile);
+}
+
bool wxTextFile::Open(const wxString& strFile)
{
m_strFile = strFile;