filename_name(fname);
Argument | Description |
---|---|
fname | The file to use. |
Returns: String.
Using this function returns the name part of the indicated file,
with the extension but without the path
name =
filename_name(file_find_first("C:\Games\*.doc", 0));
The above code gets the name (as a string) of the first "doc" type file found in the specified directory.