GLib.IOChannel.prototype.read_to_end

function read_to_end(): [return_value: GLib.IOStatus, str_return: ByteArray] {
    // Gjs wrapper for g_io_channel_read_to_end()
}
  

Reads all the remaining data from the file.

return_value

GLib.IOStatus.normal on success. This function never returns GLib.IOStatus.eof.

str_return

Location to store a pointer to a string holding the remaining data in the GLib.IOChannel. This data should be freed with GLib.free when no longer needed. This data is terminated by an extra nul character, but there may be other nuls in the intervening data.