1234
ifstream ifile(filename); if (ifile) { // The file exists, and is open for input }
12345
bool fexists(const char *filename) { ifstream ifile(filename); return ifile; }