GetFileName()

Path::GetFileName(const String&) method

Returns the name of the file referenced by the specified path.

static String System::IO::Path::GetFileName(const String &path)

Arguments

ParameterTypeDescription
pathconst String&A path to a file

Return Value

The file’s name

See Also