filename_ext

Returns the extension part of the file.

Syntax:

filename_ext(fname);


Argument Description
fname The file to use.


Returns: String.


Description

This function returns the extension part of the indicated file name, including the leading dot.


Example:

ext = filename_ext(file_find_first("*.*", 0));

The above code gets the extension (as a string) of the specified file.


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