gio.file_iostream.FileIOStream provides I/O streams that both read and write to the same file handle.