inputStream

abstract suspend fun inputStream(path: Path): Source(source)

Creates a Source for reading from a file at the specified path. The returned Source is buffered.

Return

A buffered Source object for reading.

Parameters

path

The path to read from.

Throws

if path doesn't exist or isn't a regular file.

IOException

if an I/O error occurs during Source creation.