Subscribe

UiPath StudioX

The UiPath StudioX Guide

Read Text File

UiPath.Core.Activities.ReadTextFile

Copies all the characters from a specified file.

In the Body of the Activity

  • Filename - Click browse files next to the field and then browse to and select the file to read. Alternatively, you can click plus button on the right side of the field and then, from the menu, choose one of the available options to indicate the path of the file to read:
    • Data from an application added to a card or from the Excel Workspace. For example, select an Excel file and then select a cell that contains a file path, or indicate a field from a selected email in Outlook that contains a file path.
    • Use Saved Value - Select a value in the form of a file path that you previously saved for later use in the project.
    • Text - Enter a file path in the Text Builder.
    • Open in Advanced Editor - Enter a VB expression.
  • Output to - Click plus button on the right side of the field and then, from the menu, choose one of the available options to indicate where to save the result:
    • Select an Excel file or the Excel Worksheet and then select a cell where to save the result.
    • Save for Later Use - Use the output result later in your project as input for another activity.
    • Open in Advanced Editor - Enter a VB expression.

Properties

Common

  • DisplayName - The display name of the activity.

File

  • Encoding - The encoding type to be used. You can find the complete list of codes for each character encoding here. To specify the encoding type to be used, use the value from the Name field. If no encoding type is specified, the activity will search for the file's Byte Order Marks to detect the encoding. If no Byte Order Marks are detected, the system ANSI code page is selected by default. This field supports String variables.
  • FileName - See Filename in the body of the activity.

Misc

  • Private - If selected, the data used in the activity is not logged by StudioX.

Output

Updated 2 years ago


Read Text File


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.