filename_name

Returns the name part of the indicated file name.

Syntax:

filename_name(fname);


Argument Description
fname The file to use.


Returns: String.


Description

Using this function returns the name part of the indicated file, with the extension but without the path


Example:

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.


Back: File System Functions
Next: filename_path
© Copyright YoYo Games Ltd. 2018 All Rights Reserved