- Documentation
- Activities
- Files & Folders
- Read Text File
Read the text inside a file
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
File filePath | file | Required | — | — |
Encoding encoding | enum | Optional | utf-8 | —utf-8utf-16asciilatin1 |
Trim Whitespace trimWhitespace | boolean | Optional | false | — |
Output Variable outputVariable | variable | Optional | FileContent | — |
Output
$outputVariableStringText content read from the file. Reference {FileContent} to use it directly, or {FileContent.length} for the character count.
Compatibility
WindowsLinuxAttendedUnattended
Related activities
Append Text File
Add text to the end of a text file
Copy File
Copy a file somewhere else, leaving the original where it is
Create File
Create a file, with or without starting text in it
Delete File
Delete a file for good. It does not go to the Recycle Bin
Download from URL
Download a file from a web address and save it to your computer
File Exists
Check whether a file is there