syntax:functions:fileextension
This is an old revision of the document!
Table of Contents
FileExtension(full_path)
Category: File function (found in the "Special" category in the EasyMorph application)
Description
This function extracts the file extension (with dot) from a full file path.
Arguments
Argument | Type | Description |
---|---|---|
path | Text | A file path including the file name. |
Return value type: Text.
Remarks
This function works with both relative and absolute file paths.
Examples
filename('C:\Documents\myproject.morph') //Returns '.morph'
filename('…\mypath\myfile.txt') //Returns '.txt'
See also
syntax/functions/fileextension.1630213639.txt.gz · Last modified: 2021/08/29 01:07 by craigt