Tuesday, July 26, 2011

Faster CSV open and read


FCSV.open('test.csv') do |csv|
csv.each do |row|
puts row.first
break if csv.lineno >= 10
end
end
http://www.ruby-forum.com/topic/160439

No comments:

Post a Comment