read

val read: suspend (maxBytes: Long) -> ByteArray?(source)

Reads at most maxBytes of the picked file. Null if it could not be opened, which is reported and skipped rather than thrown. The store asks for one byte more than it accepts, so a file over the limit is seen without being held whole.