+bool
+wxDebugReport::AddText(const wxString& filename,
+ const wxString& text,
+ const wxString& description)
+{
+ wxASSERT_MSG( !wxFileName(filename).IsAbsolute(),
+ _T("filename should be relative to debug report directory") );
+
+ wxFileName fn(GetDirectory(), filename);
+ wxFFile file(fn.GetFullPath(), _T("w"));
+ if ( !file.IsOpened() || !file.Write(text) )
+ return false;
+
+ AddFile(filename, description);
+
+ return true;
+}
+