From: Massimiliano Mirra Date: 2002-11-17T02:56:22+09:00 Subject: Re: File Packing Ideas - FINAL On Thu, Nov 14, 2002 at 11:56:39PM +0900, Vera, Michael wrote: > I did not see anything on reading an entire file straight into a string. I > *did* find that readlines makes each line an array element. I am very > curious how you read a whole file into a string...? s = File.open('file.txt') {|f| f.read} If I'm not mistaken 1.7 allows you this shortcut: s = File.read('file.txt') Massimiliano