Awee

file:read

Reads the full contents of a file and returns it as both a string and raw bytes

Reads the full contents of a file and returns it as both a string and raw bytes

Options

NameTypeDescription
pathstringPath to the file to read; relative paths are resolved from the pipeline cwd

Outputs

NameTypeDescription
contentstringFile contents as a UTF-8 string
bodybyteFile contents as raw bytes

How is this guide?

On this page