Non-existent files don't flag the error! What on earth?!Code:sprintf (fileName, "%s%d.sss", path, fileNo); inFile.open (fileName, ios::in); if (!inFile) cout << "error" << endl; else { cout << "Successfully opened file " << fileName; inFile.close (); }