7stud -- wrote:
>
> FasterCSV.foreach('data.txt', :headers =>true) do |row|
I forgot to add that if your file doesn't use commas as the separator
between columns, you have to specify the separator, which in your case
looks like it's a tab(\t):
FasterCSV.foreach('data.txt', :headers =>true, :col_sep =>"\t")
--
Posted via http://www.ruby-forum.com/.