read

inline fun <R> Path.read(vararg options: OpenOption, block: (InputStream) -> R): R

Same as inputStream except it also closes the InputStream.

Return

the output of block