sysseek

ios.sysseek(offset, whence=IO::SEEK_SET) รข integer
Instance Public methods

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."
doc_ruby_on_rails
2015-04-13 14:31:49
Comments
Leave a Comment

Please login to continue.