+}
+
+bool FileExists(std::wstring filename) {
+
+#if defined (WIN32)
+
+ return PathFileExists(filename.c_str());
+
+#else
+
+ struct stat bufferData;
+
+ if (stat(filename.c_str(), &bufferData) == -1) {
+ return false;
+ }
+
+#endif
+
+ return true;
+