Read file
  • 18 May 2022
  • 1 Minute to read
  • Dark
  • PDF

Read file

  • Dark
  • PDF

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.


No events.


Label Code Description
Unkown error unknown Thrown if an unknown error occured while reading the file.

Was this article helpful?

What's Next