Path.readBytes

ubyte[] readBytes() const

Reads the contents of the file as bytes.

Returns

The file contents as a ubyte array.

Throws

If the path is not a file.