Joseph McDonald wrote:
> 
> 
> 
> >>
> >> def read_f(name)
> >>     n = 0
> >>     line = ""
> >>     f = File.open(name)
> >>     f.each_line{|line|
> >>         n += 1
> >>     }
> >>     n
> >> end
> 
> or:
> n = 0; File.open(name).each { n += 1 }

This works, too:
  
  IO.foreach(name){}; $.


Regards,

  Michael
 


-- 
Michael Neumann
merlin.zwo InfoDesign GmbH
http://www.merlin-zwo.de