---
title: "Read Text From File Step"
url: "https://docs.robotiq.ai/en/article/read-text-from-file-step"
language: "en"
last_updated: "2025-12-25T10:38:15.575Z"
---

# Read Text From File Step

The Read Text From File step reads content from a `.txt` or `.css` file. Use this step to get text data from a file and put it into a variable for your automation process.

## How to Use Read Text From File

### Step 1: Add the Read Text From File Step

1.  Open your process in the Robotiq.ai editor.
2.  Drag and drop the **Read Text From File** step into your workflow.

### Step 2: Configure File Path

1.  In the step's properties, find the **File path** field.
2.  Type in the full path to the `.txt` or `.css` file you want to read. You can use a string variable that already holds the file path.

### Step 3: Define Text Destination

1.  In the **Text Destination** field, type the name of a variable.
2.  The text from the file will be saved into this variable. You can use a variable you've already made or create a new one.

## Parameters Explained

**Step name** (Optional)

-   A custom name for the process step. This name shows up on the step box in the editor.

**File path** (Required)

-   The full path to the file you want to read.
-   **Example:** `"C:\Documents\my_data.txt"` or a variable like `filePathVariable`.
-   Use this to tell the robot which file to open.

**Text Destination** (Required)

-   The name of the variable where the file's content will be stored.
-   **Example:** `fileContent`
-   This variable will hold all the text from the file you picked.

## Related Articles

-   [Define Variable Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/define-variable-step): Learn how to make new variables.
-   [Set Variable Value Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/set-variable-value-step): Learn how to change existing variables.

## 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/d8ded98a-2079-40a5-b6f3-0c39d529ad0a)
