From: ts Date: 2001-01-18T02:16:45+09:00 Subject: [ruby-talk:9462] Re: reading an entire file as a string >>>>> "R" == Raja S 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