# Write to File

### Description

The `Write to file` action writes custom text from a field to a file.

### Options

| Option               | Description                                                                                             |
| -------------------- | ------------------------------------------------------------------------------------------------------- |
| File                 |                                                                                                         |
| Action name          | The name of the workflow action.                                                                        |
| File name            | The file directory and name.                                                                            |
| Browse…​             | Browse the filesystem for a file location.                                                              |
| Create parent folder | Whether to create the parent folder.                                                                    |
| Append file          | Will overwrite the previous file if unchecked, if checked it will append new text to the previous file. |
| Content              |                                                                                                         |
| Encoding             | The encoding to use while writing the file.                                                             |
| Text                 | The text to write to the file.                                                                          |


---

# 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.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/workflows/actions/writetofile.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.
