read

abstract fun read(path: String): ByteArray?(source)

Reads one complete file without retaining a stream.

Return

fresh caller-owned bytes, or null when the file does not exist.

Parameters

path

canonical pack-relative lookup path, which may be absent from paths.

Throws

when the path is unsafe.

when the source cannot be read.