> This is more efficient - no need to load the whole file into mem to
> find a single line:
> 
> File.foreach "file.txt" do |line|
>   if /rx/ =~ line
>     puts "found it"
>     break
>   end
> end
> 
> Cheers
> 
> robert

Ahh, good point, touche my good man.

Regards,
Lee

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