returns TRUE or FALSE depending on whether or not a file exists

BOOL FileExists(CString strFolderName)
{   
	return GetFileAttributes(strFolderName) != INVALID_FILE_ATTRIBUTES;   
}

the best!

I take it it needs <windows.h>?

Did you get the idea from the console command, IF EXIST?

the standard C library stat() is more portable to other operating systems.

Coooooooooooooooooooooooool.