Retrieves the name portion of a file path, including the extension.
For example, for
"c:/temp/take25.c3d", "take25.c3d" will be returned.
|string||yes||Full path to the file to get the name for. Be sure to use forward slashes instead of back-slashes.|
Returns the name portion of a file path, including the extension.
// Get the name of a file path.
string $path = "c:/temp/take25.c3d";
// Should print "take25.c3d"
$name = `getFileName $path`;