On Mon, May 10, 2010 at 10:28 AM, Thorsten Hater <th / tp1.rub.de> wrote:
> Hi,
>
> how about
>
> File.readlines("data.txt")[n]?
File.open ... do | f |
  f.each_with_index do | line, line_nb |
   ...
  end
end
HTH
Robert

-- 
The best way to predict the future is to invent it.
-- Alan Kay