Set position of a file : File position « File Directory « Ruby






Set position of a file



f = File.open("text.txt")
f.pos = 8
puts f.gets
puts f.pos

 








Related examples in the same category

1.Your Position Within a File