From: Stephen White Date: 2001-01-19T11:00:10+09:00 Subject: [ruby-talk:9531] Re: reading an entire file as a string On Fri, 19 Jan 2001, Dave Thomas wrote: > buff = nil > File.open(path) {|f| buff = f.read(*args) } > > Which is a bit uglier than > > buff = File.read(path) I've been using: buff = File.new("filename").read(nil) to read in the whole file at once. Works for me, unless I'm misunderstanding this thread. -- steve@deaf.org