On Sep 29, 2005, at 4:01 AM, Robert Klemme wrote:
> lines = File.readlines('sometextfile').each {|l| l.chomp!}

The ri docs don't say - does IO::readlines (like IO::read, and unlike  
IO#read or IO#readlines) ensure that the file is closed after  
reading? I assume so, but wanted to be certain.