read

infix fun File.read(block: BufferedReader.() -> Unit)

Reads content from a file using a buffered reader.

Receiver

The file to read from.

Parameters

block

A lambda function containing the reading logic.