Class - io : WritableTextRecordChannel

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

Methods

Writes records to a given output resource.

Closes a given record channel.

write

(string[] textRecord)

returns Error?

Writes records to a given output resource.

 io:Error? err = writableChannel.write(records);

Parameters

  • textRecord string[]
  • List of fields to be written

  • Return Type

    (Error?)
  • An io:Error if the records could not be written properly or else ()

close

()

returns Error?

Closes a given record channel.

 io:Error? err = writableChannel.close();
  • Return Type

    (Error?)
  • An io:Error if the record channel could not be closed properly or else ()