System::IO::Path::GetFileNameWithoutExtension method

Path::GetFileNameWithoutExtension method

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

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

ReturnValue

The file’s name without extension

See Also