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
Last revisionBoth sides next revision
syntax:functions:fileextension [2021/08/29 00:37] craigtsyntax:functions:fileextension [2022/11/11 10:00] – [Remarks] dmitry
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'+  filename('C:\Documents\myproject.morph' //Returns '.morph'
  
-   filename('…\mypath\myfile.txt' //Returns '.txt'+  filename('…\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