System::IO::Path::GetFileName method

Path::GetFileName method

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

static String System::IO::Path::GetFileName(const String &path)
ParameterTypeDescription
pathconst String&A path to a file

ReturnValue

The file’s name

See Also