read

abstract suspend fun read(uri: CommonUri, block: suspend (BufferedSource) -> Unit): Boolean(source)

Opens a file or URI for reading and provides a BufferedSource. The source is automatically closed after block execution. Returns true if successful, false otherwise.