> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/pdia-data-integration/9.3-data-integration/pdi-transformation-steps-reference-overview/text-file-output-cp/select-an-engine-text-file-output/using-text-file-output-on-pentaho-engine-cp/options-text-file-output-reuse/content-tab-text-file-output-kettle.md).

# Content tab

![Content tab](https://3411831820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAYwCj9fPr1B2pjC11IOQ%2Fuploads%2Fgit-blob-8d6489f7374050761bbe9c26f252c7e9857667b6%2FPDI_TextFileOutput_ContentTab.png?alt=media)

The **Content** tab allows you to include the following options for the output text file.

| Option                                 | Description                                                                                                                                                                                                                               |
| -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Append**                             | Select to append lines to the end of the file.                                                                                                                                                                                            |
| **Separator**                          | Specify the character used to separate the fields in a single line of text, typically a semicolon or tab. Click **Insert Tab** to place a tab in the **Separator** field. The default value is semicolon (;).                             |
| **Enclosure**                          | Specify to enclose fields with a pair of specified strings. It allows for separator characters in fields. This setting is optional and can be left blank. The default value is double quotes (").                                         |
| **Force the enclosure around fields?** | Specify to force all field names to be enclosed with the character specified in the **Enclosure** option.                                                                                                                                 |
| **Disable the enclosure fix?**         | Specify to disregard enclosures on string fields and separators.                                                                                                                                                                          |
| **Header**                             | Clear to indicate that the first line in the output file is not a header row.                                                                                                                                                             |
| **Footer**                             | <p>Select to specify that the last line in the output file is a footer row.</p><p>When using the <strong>Append</strong> option, it is not possible to strip a footer from the file content before appending new rows.</p>                |
| **Format**                             | Specify the type of formatting to use. It can be either DOS or UNIX. UNIX files have lines separated by line feeds, while DOS files have lines separated by carriage returns and line feeds. The default value is CR + LF (Windows, DOS). |
| **Compression**                        | Specify the type of compression (.ZIP or Gzip) to use when compressing the output file. Only one file is placed in a single archive. The default value is None.                                                                           |
| **Encoding**                           | Specify the file encoding to use. Leave blank to use the default encoding on your system. To use Unicode, specify `UTF-8` or `UTF-16`. On first use, PDI searches your system for available encodings.                                    |
| **Right pad fields**                   | Select to add spaces to the end of the fields (or remove characters at the end) until the length specified in the table under the **Fields** tab is reached.                                                                              |
| **Fast data dump (no formatting)**     | Select to improve the performance when dumping large amounts of data to a file by not including any formatting information.                                                                                                               |
| **Split every ... rows**               | Specify to split the resulting file into multiple parts of N rows if the number N is larger than zero.                                                                                                                                    |
| **Add Ending line of file**            | Specify an alternate ending row to the output file.                                                                                                                                                                                       |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.pentaho.com/pdia-data-integration/9.3-data-integration/pdi-transformation-steps-reference-overview/text-file-output-cp/select-an-engine-text-file-output/using-text-file-output-on-pentaho-engine-cp/options-text-file-output-reuse/content-tab-text-file-output-kettle.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
