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.


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


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