Slurp a file into an array without newlines

Coffee....not.....working.......

what's a neater way of doing this?

   lines = File.new('sometextfile').readlines.map { |l| l.chomp }

···

--
Rasputin :: Jack of All Trades - Master of Nuns

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