read

Reads the entire content of a file associated with the abstract pathname into a Buffer.

docs

Return

Buffer

Throws

if there was a failure to read the file, or the filesystem threw a security exception.

UnsupportedOperationException

If Node.js is not being used.