On Mon, Aug 13, 2012 at 11:49 AM, ajay paswan <lists / ruby-forum.com> wrote:
>>
>> File.foreach('path/to/your/file').first
>>
>
> What if I use:
>
> line = FasterCSV.foreach(filename).first
>
> giving the error:
> Uncaught exception: no block given
> :(

This should work:

line = FasterCSV.to_enum(:foreach, filename).first

Kind regards

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/