Your Position Within a File : File position « File Directory « Ruby






Your Position Within a File


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

 








Related examples in the same category

1.Set position of a file