fext (<file>{,<num>})
string
The extension part of a file name.
<file>
The name of the file
to be queried. The file may or may not exist.
<num>
Whether to include
the leading period character in the answer. The default is one (include
it).
The following returns the string value '.dxf'.
string myfile = 'this.dxf' string ext = fext(myfile)
The following returns the string value 'dxf'.
string myfile = 'this.dxf' string ext = fext(myfile,0)
Functions: |
fname (string), flocal (string), fpath (string), full (string) |