# File tab

![Text file input step](/files/yLuRYjo8Lvo8Feir5KoB)

Use the **File** tab to enter the following connection information for your source.

| Option                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **File or directory**          | Specify the source location if the source is not defined in a field.Click **Browse** to display the **Open File** window and navigate to the file or folder. For the supported file system types, see [Connecting to Virtual File Systems](/pdia-data-integration/10.2-data-integration/data-integration-perspective-in-the-pdi-client/virtual-file-system-browser.md). Click **Add** to include the source in the **Selected files table**. If the source location is defined in a field, use the **Accept filenames from previous steps** to specify your file name. |
| **Regular expression**         | Specify a regular expression to match filenames within a specified directory.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Exclude regular expression** | Specify a regular expression to exclude filenames within a specified directory.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pentaho.com/pdia-data-integration/10.2-data-integration/pdi-transformation-steps-reference-overview/text-file-input-cp/options-text-file-input-reuse/file-tab-text-file-input-pentaho-engine.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
