use Lines
open fun useLines( encoding: StringEncoding = defaultStringEncoding, byteOrder: ByteOrder = defaultByteOrder, block: (lines: Sequence<String>) -> Unit)
Content copied to clipboard
Calls the block callback giving it a sequence of all the lines in the stream and closes it once the processing is complete.
Parameters
encoding
encoding of the string.
byte Order
byte order for UTF-16 and UTF-32 encoding.