Skip to main content
Roberty Studio
RPAFile Management

File reading

File reading

Reads the content of a text file and returns its content as text. Ideal for processing .txt, .log, .json and other text-based formats.


Options​

File path​

Enter the full path of the text file to be read, including the name and the extension. Example: C:\Desktop\report.txt.

Returns​

Javascript code​

js
actions["action-id"].content // returns the contents of the file in text form (Text)

Field selection​

  • content — returns the contents of the file in text form (Text)

Rules and Conditions​

  • The File path field is required.
  • The file indicated must exist and be accessible by the robot.
  • Very large files may impact the robot performance.
  • Recommended for plain text files. For CSV files, use the CSV file reading action.