copyTo

JVM
1.0
fun Reader.copyTo(
    out: Writer,
    bufferSize: Int = DEFAULT_BUFFER_SIZE
): Long

(source)

Copies this reader to the given out writer, returning the number of characters copied.

Note it is the caller's responsibility to close both of these resources.

Parameters

out - writer to write to.

bufferSize - size of character buffer to use in process.

Return number of characters copied.