This function returns the extension part of the indicated file name, including the leading dot.
filename_ext(fname);
Argument | Type | Description |
---|---|---|
fname | String | The file to use. |
ext = filename_ext(file_find_first("*.*", 0));
The above code gets the extension (as a string) of the specified file.