From: Tim Bray Date: 2006-09-28T07:02:13+09:00 Subject: Idiomatic file snarf I want to open a file, suck the contexts into a variable and close it again. I suppose I could IO#each and glue the lines together. Currently I have f = File.new(fname) text = f.read f.close Surely there's an idiomatic Ruby one-liner? I must be looking in the wrong place @ruby-doc.org -Tim