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 (); }



LinkBack URL
About LinkBacks



I don't think nocreate is a standard flag. 6.0 was pretty terrible at conforming to ANSI. I'd say get a new compiler.