GLib.IOChannel.prototype.read_line
function read_line(): [return_value: GLib.IOStatus, str_return: String, length: Number(gsize), terminator_pos: Number(gsize)] {
// Gjs wrapper for g_io_channel_read_line()
}
Reads a line, including the terminating character(s), from a GLib.IOChannel into a newly-allocated string. str_return will contain allocated memory if the return is GLib.IOStatus.normal.
- return_value
the status of the operation.
- str_return
The line read from the GLib.IOChannel, including the line terminator. This data should be freed with GLib.free when no longer needed. This is a nul-terminated string. If a length of zero is returned, this will be null instead.
- length
location to store length of the read data, or null
- terminator_pos
location to store position of line terminator, or null