User Tools

Site Tools


syntax:functions:fileextension
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Previous revision
Next revision
syntax:functions:fileextension [2021/08/29 00:37] craigt
Line 1: Line 1:
 +====== 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:directory|Directory(full_path)]]
 +  * [[syntax:functions:filename|FileName(full_path)]]
syntax/functions/fileextension.txt · Last modified: 2023/05/02 11:41 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki