Function: fext

Syntax

fext (<file>{,<num>})

Type

string

Returns

The extension part of a file name.

Parameter

Examples

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)

See Also

Functions:

fname (string), flocal (string), fpath (string), full (string)