klyn.io.csv.CSVReader.next
method
public override next() as Boolean
Description

Parses exactly the next CSV record, which may span physical input lines. Previously returned records are not changed or retained by the reader.

Returns

true if current is available; false after exhaustion or close.

Throws
  • CSVException for malformed CSV in strict mode, with line and column.
  • IOException for input or decoding errors. The cursor is then closed.
  • IllegalStateException if this cursor is already executing.
Example

if reader.next(): print(reader.current)