Ruby vs. Python - A n00b's perspective (part 5)(futurefun.tumblr.com) |
Ruby vs. Python - A n00b's perspective (part 5)(futurefun.tumblr.com) |
You don't have to. The 2nd argument is optional and defaults to IO::SEEK_SET. (Source: http://www.ruby-doc.org/core-1.9.3/IO.html#method-i-seek)