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