How to check for the existence of a C file?
try { if ((fopen_s(&f, filename, "r") != NULL) { //так не получается cout << "File is open" << endl; fclose(f); } else throw (FileOpenError(filename, "file wasn't open!")); } catch (FileOpenError& ex) { cout << ex.what(); }
statfunction? ... - Harrystat(). - 0andriystat()not atomic. - 0andriyc,оопandисключенияоопout to be next? - PinkTux