From: Gregory Brown Date: 2008-09-18T01:48:06+09:00 Subject: [ruby-core:18674] Re: Request: File.binread (Or File.read_binary) On Wed, Sep 17, 2008 at 12:35 PM, Yukihiro Matsumoto 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