/*-------------------------------------------------------------------
Returns a boolean indicating whether a file exists
-------------------------------------------------------------------*/
bool FileExists(string Filepath)
{
struct stat buffer;
return (stat (Filepath.c_str(), &buffer) == 0);
}