#include "file.h" using namespace std; bool FileExists(std::string Filename){ #if defined (__WIN32__) #else const char *FilenameChar = Filename.c_str(); int rescode = access(FilenameChar, R_OK); if (errno == ENOENT){ return false; } #endif return true; }