+bool wxFile::Exists(const wxChar *name)
+{
+ wxStructStat st;
+#if wxUSE_UNICODE && wxMBFILES
+ wxCharBuffer fname = wxConvFile.cWC2MB(name);
+
+#if defined(__WXMAC__) && !defined(__UNIX__)
+ return !access(wxUnix2MacFilename( name ) , 0) && !stat(wxUnix2MacFilename( name ), &st) && (st.st_mode & S_IFREG);
+#else
+ return !wxAccess(fname, 0) &&
+ !wxStat(wxMBSTRINGCAST fname, &st) &&
+ (st.st_mode & S_IFREG);
+#endif
+#else
+#if defined(__WXMAC__) && !defined(__UNIX__)
+ return !access(wxUnix2MacFilename( name ) , 0) && !stat(wxUnix2MacFilename( name ), &st) && (st.st_mode & S_IFREG);
+#else
+ return !wxAccess(name, 0) &&
+ !wxStat(name, &st) &&
+ (st.st_mode & S_IFREG);
+#endif
+#endif
+}
+
+bool wxFile::Access(const wxChar *name, OpenMode mode)