Michael Dore wrote:
> 
> I have tried this:
>
> vl_stops.each do |vl_stops|

First, you might try dreaming up more than one variable name.

Second, if you are searching for simple strings, like 'hello', you can 
do this:

search_string = 'hello'

IO.foreach("data.txt") do |line|
  if line.include?(search_string)
    puts line
  end
end

-- 
Posted via http://www.ruby-forum.com/.