СПРОСИТЬ ОТВЕТИТЬ профайл | регистрация | faq
#include <fstream>
...
bool FileExist(const char* fileName){std::ifstream file(fileName);
return file . good();}
Например
BOOL IsFolderExist(LPSTR name){ int rv = GetFileAttributes(name); if(rv == -1) return false; return (rv & FILE_ATTRIBUTE_DIRECTORY);}
Powered by: Ultimate Bulletin Board, Freeware Version 5.10aPurchase our Licensed Version- which adds many more features! © Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.