From: Gavin Sinclair Date: 2005-09-29T23:51:45+09:00 Subject: Re: slurp a file into an array without newlines Dick Davies wrote: > > what's a neater way of doing this? > > lines = File.new('sometextfile').readlines.map { |l| l.chomp } > require 'rio' lines = rio('sometextfile').chomp.lines[] Gavin