Path.readFile

Read entire contents of file name and returns it as an untyped array. If the file size is larger than upTo, only upTo bytes are _read.

struct Path
const
readFile
(
size_t upTo = size_t.max
)

Parameters

upTo size_t

if present, the maximum number of bytes to _read

Return Value

Type: auto

Untyped array of bytes _read

Throws

FileException in case of error

Meta