# 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()

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/FileFunctions/FileBaseName.htm)

#### Examples and results:

Scripting examples

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