SECFileSystem::FileExists

BOOLSECFileSystem::FileExists(const CString&PathAndFileName)

Determines if a file exists.

Defined in: filesys.cpp

Return Value

Nonzero if file exists; 0 if file does not exist.

Parameters

PathAndFileName

The name of the file to test the existence of.

Comments

To determine if a file exists.

Example

BOOL bExists = fs.FileExists("c:\\foo\\bar\\what.txt");

Developer Notes

A directory is considered a file for purposes of existence.

See Also

SECFileSystem  DirectoryExists