Description

Reads the content of a specified file and returns the text as an output.



Attributes

Output

  • Content - The extracted text from the file stored into a String variable.

Input

  • Encoding - The type of encoding used on the specified file.

  • FilePath - The path of the file to be read.

Common

  • ContinueOnError - The Boolean value to specify whether to continue executing the next activities even if there is an error thrown on this activity.

Misc

  • DisplayName - Renames the activity.


Example

  1. Create a String variable called names.
  2. Add a File Read Text activity inside a Sequence, and in the Content field under Properties, add names.
  3. In the File Path, search for and then select the file that would be read by, first, clicking the browse button.
  4. Add a Write Line activity, and in the Text field, write names


        The use case should look as the following screenshot:



The result should be the contents of the specified file in the Output panel.