Object - io : WritableTextRecordChannel

Represents a channel which will allow to write records through a given WritableCharacterChannel.

Constructor

__init

(WritableCharacterChannel characterChannel, string fs, string rs, string fmt)

  • fs string
  • Field separator (this could be a regex)

  • rs string
  • Record separator (this could be a regex)

  • fmt string default

Methods

write

(string textRecord)

returns Error?

Writes records to a given output resource.

Parameters

  • textRecord string
  • List of fields to be written

  • Return Type

    (Error?)
  • An Error if the records could not be written properly

close

()

returns Error?

Closes a given record channel.

  • Return Type

    (Error?)
  • An Error if the record channel could not be closed properly