method

sysseek

v2_1_10 - Show latest stable - Class: IO
sysseek(p1, p2 = v2)
public

Seeks to a given offset in the stream according to the value of whence (see IO#seek for values of whence). Returns the new offset into the file.

f = File.new("testfile")
f.sysseek(-13, IO::SEEK_END)   #=> 53
f.sysread(10)                  #=> "And so on."