>>>>> "R" == Raja S <raja / cs.indiana.edu> writes:

R> Is File.new("data").read then the recommended way of reading the entire
R> contents of a file as a string?  Unlike the IO methods this does not
R> automatically close the file object.

 IO::readlines("path", nil)

 and you have an array with only 1 element, which contains the entire
 contents of a file


Guy Decoux