readOrThrow

fun readOrThrow(errCondition: String): Char

Returns the next character in the stream and advances the position. Throws an exception if the end of the stream would be exceeded.

Parameters

errCondition

The condition to include in an error message if necessary.