# FileBaseName - script function

The FileBaseName function returns a string containing the name of the table file currently being read, without path or extension.

Syntax:

FileBaseName()

Examples and results:

Examples and results

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