Object - io : ReadableTextRecordChannel

Represents a channel which will allow to read

Constructor

__init

(ReadableCharacterChannel charChannel, 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

hasNext

()

returns boolean

Checks whether there's a record left to be read.

  • Return Type

    (boolean)
  • True if there's a record left to be read

getNext

()

returns string | Error

Get next record from the input/output resource.

  • Return Type

    (string | Error)
  • Set of fields included in the record or Error if any error occurred

close

()

returns Error?

Closes a given record channel.

  • Return Type

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