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?)
  • Nil or Error if any error occurred