SECFileSystem::GetFileName
CStringSECFileSystem::GetFileName(const CString&PathAndFileName)
Returns the filename and extension of a filespec.
Defined in: filesys.cpp
Return Value
The name of the file after discarding any filesystem and path.
Parameters
PathAndFileName
Name and possibly path to the file.
Comments
Extracts a file name from a path. The file name is all characters after the last '\' or '/'.
Example
CString FileName = fs.GetFileName("c:\\foo\\bar\\what.txt");
ASSERT(FileName == "what.txt");
CString FileName = fs.GetFileName("c:\\foo\\bar\\what.txt.john");
ASSERT(FileName == "what.txt.john");
See Also
SECFileSystemGetFileName GetPath GetFileSystem GetBaseFileName