back to Table of Contents


FileExtension$ (function)

This simple function will return the name extension of the given file or folder name. That is the part right of the rightmost found dot (if any) starting with the dot itself. To get the regular name part left of the name extension, you would use the function FileNamePart$() instead.


SYNTAX:

ext$ = FileExtension$ (file$)

INPUTS:

file$ (STRING)


RESULT:

ext$ (STRING)

In either case (empty or not) the result is a valid extension to add to a file or folder name, as extensions are completely optional in any names.

back to Table of Contents