filename_dir

Returns the directory part of the indicated file name.

Syntax:

filename_dir(fname);


Argument Description
fname The file to use.


Returns: String.


Description

This function returns the directory part of the indicated file name, which normally is the same as the path except for the final backslash.


Example:

dir = filename_dir("Test.ini");

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


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