From: Alex Dowad Date: 2010-05-01T14:48:59+09:00 Subject: Re: File.read(fname) vs. File.read(fname,File.size(fname)) Thanks for your reply, Roger! > I'm unable to reproduce this except on windows, so that's where you are, > I assume? Yes. Sorry, I'll make that clear next time I post. > ... > I'll file a feature request for it. Thanks! There's no point in growing a buffer dynamically, when you know from the beginning how many bytes you need to store in it. Rather than chaining directly to IO.read, File.read could easily pass the file size along if no "length" argument is passed in. Alex Dowad -- Posted via http://www.ruby-forum.com/.