#endif
#include "wx/wfstream.h"
+#include "wx/txtstrm.h"
#include "configtoolview.h"
#include "configtooldoc.h"
#include "configtree.h"
wxString fullPath = dialog.GetPath();
wxGetApp().GetSettings().m_lastSetupSaveDir = wxPathOnly(fullPath);
- wxFileOutputStream stream(fullPath);
- if (!stream.Ok())
+ wxFileOutputStream osFile(fullPath);
+ if (!osFile.Ok())
{
wxMessageBox(_("Sorry, could not save this file."), _("Save Setup File"), wxICON_EXCLAMATION|wxOK);
return;
}
+ wxTextOutputStream stream(osFile);
stream << setupStr;
}
}
wxString fullPath = dialog.GetPath();
wxGetApp().GetSettings().m_lastSetupSaveDir = wxPathOnly(fullPath);
- wxFileOutputStream stream(fullPath);
- if (!stream.Ok())
+ wxFileOutputStream osFile(fullPath);
+ if (!osFile.Ok())
{
wxMessageBox(_("Sorry, could not save this file."), _("Save Configure Command File"), wxICON_EXCLAMATION|wxOK);
return;
}
+ wxTextOutputStream stream(osFile);
stream << configureStr;
}
}