method

pos=

v2_6_3 - Show latest stable - Class: IO
pos=(p1)
public

Seeks to the given position (in bytes) in ios. It is not guaranteed that seeking to the right position when ios is textmode.

f = File.new("testfile")
f.pos = 17
f.gets   #=> "This is line two\n"