Class: CSVStream
The io:CSVStream
is used to initialize a stream of type CSV records. This io:CSVStream
refers to the stream
that is embedded to the I/O record channels.
Constructor
Initialize a CSVStream
using an io:ReadableTextRecordChannel
.
init (ReadableTextRecordChannel readableTextRecordChannel)
- readableTextRecordChannel ReadableTextRecordChannel
The
io:ReadableTextRecordChannel
that this CSV stream is referred to
Methods
next
Isolated Function
The next function reads and returns the next CSV record of the related stream.
close
function close() returns Error?
Isolated Function
Close the stream. The primary usage of this function is to close the stream without reaching the end.
If the stream reaches the end, the CSVStream.next()
will automatically close the stream.