# FileName - script function

The FileName function returns a string containing the name of the table file currently being read, without path but including the extension.

Syntax:

FileName()

Examples and results:

Examples and results

| Example | Result |
| --- | --- |
| `LOAD  *, FileName(<br>) as X from`<br>`C:\UserFiles\abc.txt` | Will return<br>'abc.txt' in field X in each record read. |