Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#include <io.h>
...
if (_access(filepath,0) != 0)
{
// No such file
}
#include <cstdio>
bool isExist(const char* filepath)
{
FILE* f = 0;
if (filepath && (f=fopen(filepath,"r")) != 0)
fclose(f);
return f != 0;
}
bool FileIO::CheckFileExists ( CString path )
{
WIN32_FIND_DATA data;
HANDLE hFile = FindFirstFile( path, &data );
if ( hFile == INVALID_HANDLE_VALUE ) // directory doesn't exist
return (FALSE);
else
{
// is it folder or file?
FindClose(hFile);
if ( data.dwFileAttributes ) return ( true );
}
return ( false );
}