Category: File function (found in the "Special" category in the EasyMorph application)
This function extracts the file extension (with dot) from a full file path.
Argument | Type | Description |
---|---|---|
path | Text | A file path including the file name. |
Return value type: Text.
This function works with both relative and absolute file paths.
The file extension is the characters after the last dot, not the first dot.
fileextension('C:\Documents\myproject.morph') //Returns '.morph'
fileextension('…\mypath\myfile.txt') //Returns '.txt'