public readLines() as ArrayList<String> throws IOException:
Reads all remaining lines from the current reader position.
Ordered list of lines, each including its line terminator when present.
reader = StringReader("a\nb")
print(reader.readLines().size)