read

open fun read(aDest: Array<Char>, nOfs: Int, nLen: Int): Int(source)

Reads characters into an array

Return

The number of characters read, or -1 at the end of the stream

Parameters

aDest

Destination buffer. May not be null.

nOfs

Offset at which to start storing characters. Must be ≥ 0.

nLen

The maximum possible number of characters to read. Must be ≥ 0.

Throws

if reading fails