Using this function returns the name part of the indicated file, with the extension but without the path.
filename_name(fname);
Argument | Type | Description |
---|---|---|
fname | String | The file to use. |
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.