From: Robert Dober Date: 2010-05-10T18:47:59+09:00 Subject: Re: Files On Mon, May 10, 2010 at 10:28 AM, Thorsten Hater 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