getFileName

Synopsis

$ getFileName("/path/file")

Extracts the file portion of the specified path

Parameters

"/path/file" - the path to operate on.

Returns

The file portion of the specified path.

Examples

$path = "c:/Documents and Settings/Raphael.Mudge/Desktop/garbage.txt"; println("file name: " . getFileName($path));

file name: garbage.txt

See Also