read

abstract fun read(fileName: String): ByteArray?

Reads all the bytes from a file.

Return

The contents of the file or null if the file does not exist.

Parameters

fileName

The name of the file without a path.