Object - io : WritableCSVChannel

Represents a WritableCSVChannel which could be used to write records from CSV file.

Constructor

__init

(WritableCharacterChannel characterChannel, Separator fs)

  • fs Separator ,
  • Field separator which will separate between the records in the CSV

Methods

write

(string[] csvRecord)

returns error?

Writes record to a given CSV file.

Parameters

  • csvRecord string[]
  • A record to be written to the channel

  • Return Type

    (error?)
  • Returns an error if the record could not be written properly

close

()

returns error?

Closes a given CSVChannel.

  • Return Type

    (error?)
  • if an error is encountered