---
title: "Write Text To File Step"
url: "https://docs.robotiq.ai/en/article/write-text-to-file-step"
language: "en"
last_updated: "2025-12-25T10:37:48.471Z"
---

# Write Text To File Step

The Write Text To File step writes text to a `.txt` or `.css` file. You can use it to create new files or update existing ones with specific content.

## How to Use Write Text To File

Use this step to save data, logs, or settings to a text file during your automation process.

### Step 1: Add the Write Text To File Step

1.  Drag and drop the **Write Text To File** step into your process workflow.
2.  (Optional) In the **Step name** field, type a custom name for this step. This helps you find the step in your process.

### Step 2: Configure Input Parameters

Set these parameters to tell the step what text to write and where to save it.

## Parameters Explained

**File Path** (Required)

-   This is the full path to the file.
-   **Example:** `C:\Logs\MyLog.txt` or a variable that holds the path.
-   Use this to tell the step where to create or find the file.

**Text to Write** (Required)

-   This is the text you want to write to the file, either as a string or a variable.
-   **Example:** `"Process completed successfully."` or a variable like `myOutputText`.
-   This is the content that will be added to your file.

**Append New Line** (Required)

-   This setting decides if the `Text to Write` starts on a new line in the file.
-   Set to `True` to add the text on a new line.
-   Set to `False` to add the text right after the existing content on the same line.

**Overwrite File** (Required)

-   This controls how the step deals with files that already exist.
-   **T (True):** The step replaces the entire file with the new text.
-   **F (False):** The step adds the new text to the end of the file. This is the default setting.

## Related Articles

-   [Set Variable Value Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/set-variable-value-step)
-   [Define Variable Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/define-variable-step)

## Need Help?

Can't find what you're looking for? Join the [Robotiq Community](https://community.robotiq.ai/home/) to get help from other users and the Robotiq team.

![](https://cdn-assets.productfruits.com/85cfca88-6166-4be8-a221-9cffe20cb1a0)
