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
- Open your process in the Robotiq.ai editor.
- Drag and drop the Read Text From File step into your workflow.
Step 2: Configure File Path
- In the step's properties, find the File path field.
- Type in the full path to the
.txtor.cssfile you want to read. You can use a string variable that already holds the file path.
Step 3: Define Text Destination
- In the Text Destination field, type the name of a variable.
- 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 likefilePathVariable. - 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: Learn how to make new variables.
- Set Variable Value Step - Robotiq.ai Help Center: Learn how to change existing variables.
Need Help?
Can't find what you're looking for? Join the Robotiq Community to get help from other users and the Robotiq team.