Read text file Version 19 (java)
Action group: File system
Description
This action is designed to load the contents of a text file.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
File | Path to the file to which the action will be applied. Does not work with formats opening text in additional software (.doc, .docx, etc. ). | Robin.FilePath | Yes | |
Encoding | File encoding Dropdown list:
| Robin.String | Yes | |
Results | ||||
Result | Text variable with the contents of the text file. | Robin.String |
Special conditions of use
The action can only work with text files.
The action does not work with formats that open text in additional software (.doc, .docx, etc.).
You can see more details here.
Example of use
Task
Get text from a file.
Solution
Use the "Read text file" action.
Implementation
- Move the "Read text file" action to the workspace
- Set the parameters of the "Read text file" action.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully. The text from the file was received.
Обзор
Инструменты контента