Prova così:

codice:
bool doesExist(const char *filepath) 
{ 
bool exists = false; 
fstream fin; 
fin.open(filepath,ios::in); 
if( fin.is_open() ) 
exists=true; 
fin.close(); 
return exists; 
}