readFileOrNull

abstract suspend fun readFileOrNull(path: String): ByteArray?

Read the contents of a file as a String or return null on any error.

Return

contents of file or null if error (file does not exist, etc.)

Parameters

path

fully qualified path encoded specifically to the target platform's filesystem.