GLib.IOChannel.prototype.read_line_string

function read_line_string(buffer: GLib.String, terminator_pos: Number(gsize)): GLib.IOStatus {
    // Gjs wrapper for g_io_channel_read_line_string()
}
  

Reads a line from a GLib.IOChannel, using a GLib.String as a buffer.

buffer

a GLib.String into which the line will be written. If buffer already contains data, the old data will be overwritten.

terminator_pos

location to store position of line terminator, or null

Returns

the status of the operation.