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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
FilePath 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:

  • auto-detect
  • UTF-8
  • UTF-16
  • Windows-1251
  • KOI8-R
  • OEM-855
  • OEM-866
  • ISO 8859-5
Robin.String
Yes
Results
ResultText 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

  1. Move the "Read text file" action to the workspace


  2. Set the parameters of the "Read text file" action. 


  3. Click on the "Start" button in the top panel. 

Result

The program robot completed successfully. The text from the file was received.

  • Нет меток