bool existsFile(string FileName) { fstream temp(FileName); bool ret = temp.good(); temp.close(); return ret;}