User Tools

Site Tools


syntax:functions:fileextension

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
syntax:functions:fileextension [2021/08/29 01:07] craigtsyntax:functions:fileextension [2023/05/02 11:41] (current) – [Examples] correct function name craigt
Line 15: Line 15:
 \\  \\ 
 =====Remarks===== =====Remarks=====
-This function works with both relative and absolute file paths.+This function works with both relative and absolute file paths.  
 + 
 +The file extension is the characters after the last dot, not the first dot.
  
  
Line 21: Line 23:
 =====Examples===== =====Examples=====
  
-  filename('C:\Documents\myproject.morph' //Returns '.morph'+  fileextension('C:\Documents\myproject.morph' //Returns '.morph'
  
-  filename('…\mypath\myfile.txt' //Returns '.txt'+  fileextension('…\mypath\myfile.txt' //Returns '.txt'
  
 \\  \\ 
syntax/functions/fileextension.txt · Last modified: 2023/05/02 11:41 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki