User Tools

Site Tools


syntax:functions:fileextension

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

ArgumentTypeDescription
path Text A file path including the file name.

Return value type: Text.


Remarks

This function works with both relative and absolute file paths.

The file extension is the characters after the last dot, not the first dot.


Examples

fileextension('C:\Documents\myproject.morph')  //Returns '.morph'
fileextension('…\mypath\myfile.txt')  //Returns '.txt'


See also

syntax/functions/fileextension.txt · Last modified: 2023/05/02 11:41 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki