readFile

abstract fun readFile(uri: Uri): PromiseResult<Uint8Array<*>>(source)

Read the entire contents of a file.

Parameters

uri

The uri of the file.

Throws

{@linkcode FileSystemError.FileNotFound FileNotFound} when uri doesn't exist.

Online Documentation