From: ajay paswan Date: 2012-08-13T18:49:16+09:00 Subject: Re: Fastest way to get first line and ith line in a file? > > File.foreach('path/to/your/file').first > What if I use: line = FasterCSV.foreach(filename).first giving the error: Uncaught exception: no block given :( -- Posted via http://www.ruby-forum.com/.