string.file.ext

Syntax

sext := string.file.ext(sfilepath)

Extract the file extension sext from the file and path string sfilepath.

For example, the return value from c:/work/fred.txt would be txt.

Returns:sext - the extension of the file-path given
Arguments:sfilepath - a full file and path name