G_IO_ERROR_NONE if the operation was successful.IOChannel.seek
glib.types.IOError seek(long offset, glib.types.SeekType type)Sets the current position in the #GIOChannel, similar to the standard library function fseek().
Parameters
offset | an offset, in bytes, which is added to the position specified by type |
type | the position in the file, which can be G_SEEK_CUR (the current position), G_SEEK_SET (the start of the file), or G_SEEK_END (the end of the file) |
Returns
Deprecated
Use [glib.iochannel.IOChannel.seekPosition] instead.