Files Handling

Read Text File

Activity reads contents of a text file into a String variable.

read1
read2

Fill in File path with path to the file you want to read into Content variable.

Choose the right Encoding for the file from list. ANSI supports Polish special characters.

Activity returns contents of the file.

NameTypeCategoryDescription
EncodingDropdownInputselect type of encoding from the dropdown list
File PathStringInputdirectory path to a file (file name and extension included)
Alternative Scenario If FailedBooleanMisccheckbox; default is "on"
Display NameLiteralMiscchanges display name of the activity
ContentStringOutputvariable to store the retrieved value
ResultBooleanOutputreturns a Boolean value. True if no error in activity, otherwise will return False
Result CodeInt32OutputResult Code will return 0 if there is no error in activity, otherwise in most cases will return 1. See the table of Extended Result Codes for more info
FullscreenBooleanScreenshotcheckbox; default is "off"
Screenshot PathStringScreenshotdirectory path to save location
Show CursorBooleanScreenshotcheckbox; default is "off"
Window ScreenshotsBooleanScreenshotcheckbox; default is "off"