Read file
- 18 May 2022
- 1 Minute to read
- DarkLight
- PDF
Read file
- Updated on 18 May 2022
- 1 Minute to read
- DarkLight
- PDF
Article Summary
Reads the given file and outputs its contents as a string.
Note that reading/handling large files this way can cause performance issues.
Input arguments
Label | Key | Type | Required? | Default | Description |
---|---|---|---|---|---|
File path | path | String(local-filesystem-reference) | Yes | – | Absolute local filesystem path to the file. |
File encoding | encoding | String | Yes | utf8 | Encoding with which to read the file. |
Output arguments
Number of outputs: 2
Label | Key | Type | Description |
---|---|---|---|
File string | fileString | String | Read file as a string. |
Events
No events.
Errors
Label | Code | Description |
---|---|---|
Unkown error | unknown | Thrown if an unknown error occured while reading the file. |
Was this article helpful?