I currently have the following code to parse a csv file using the standard csv library
@parsed_file=CSV::Reader.parse(params[:dump][:file])
@parsed_file.each do |row|
#some code
end
I want to move this to faster csv for the increased speed. Does anyone know the equivalent of the above for FasterCSV?
Thanks
and
are equivalent.
But
takes filename as parameter and reads and parse data from the file however you are dumping the file content as you are passing data in the parameter
should work fine.