Read Text File
Activity reads contents of a text file into a String variable.
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.
| Name | Type | Category | Description |
|---|---|---|---|
| Encoding | Dropdown | Input | select type of encoding from the dropdown list |
| File Path | String | Input | directory path to a file (file name and extension included) |
| Alternative Scenario If Failed | Boolean | Misc | checkbox; default is "on" |
| Display Name | Literal | Misc | changes display name of the activity |
| Content | String | Output | variable to store the retrieved value |
| Result | Boolean | Output | returns a Boolean value. True if no error in activity, otherwise will return False |
| Result Code | Int32 | Output | Result 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 |
| Fullscreen | Boolean | Screenshot | checkbox; default is "off" |
| Screenshot Path | String | Screenshot | directory path to save location |
| Show Cursor | Boolean | Screenshot | checkbox; default is "off" |
| Window Screenshots | Boolean | Screenshot | checkbox; default is "off" |