Object -
io
:
ReadableCSVChannel
Represents a ReadableCSVChannel which could be used to read records from CSV file.
Constructor
__init
(ReadableCharacterChannel byteChannel, Separator fs, int nHeaders)
- byteChannel ReadableCharacterChannel
-
The CharacterChannel, which will represent the content in the CSV file
- fs Separator ,
-
Field separator, which will separate between the records in the CSV file
- nHeaders int 0
-
Number of headers, which should be skipped prior to reading records
Methods
Indicates whether there's another record which could be read.
-
Return Type
(boolean) True if there's a record
Gets the next record from the CSV file.
-
Return Type
(string[] | Error | ()) List of fields in the CSV or
Error
if any error occurred
Closes a given CSVChannel.
-
Return Type
(Error?) Returns
Error
if any error occurred