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

Read file

  • Dark
    Light
  • 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

LabelKeyTypeRequired?DefaultDescription
File pathpathString(local-filesystem-reference)YesAbsolute local filesystem path to the file.
File encodingencodingStringYesutf8Encoding with which to read the file.

Output arguments

Number of outputs: 2

LabelKeyTypeDescription
File stringfileStringStringRead file as a string.

Events

No events.

Errors

LabelCodeDescription
Unkown errorunknownThrown if an unknown error occured while reading the file.

Was this article helpful?

What's Next