iterLines

fun iterLines(from: LineNumber? = null, to: LineNumber? = null): TextIterator

Return a cursor that iterates over the given range of lines, without returning the line breaks between, and yielding empty strings for empty lines.

When from and to are given, they should be 1-based line numbers.