On Wed, Sep 17, 2008 at 12:35 PM, Yukihiro Matsumoto <matz / ruby-lang.org> wrote:

> |class File
> |  def self.read_binary(file_name)
> |    File.open(file_name, "rb:BINARY") { |f| f.read }
> |  end
> |end
>
> Defines a exact behavior.  Does it take length or offset option, as
> File.read does?

Oh, sorry for not being specific: So long as it makes sense to do so,
this should behave as close to how File.read does as possible, so it
should be able to take those options.

-greg

-- 
Technical Blaag at: http://blog.majesticseacreature.com | Non-tech
stuff at: http://metametta.blogspot.com