It would be simpler if you could provide a piece of the real file
(like uploading a piece of the file somewhere) since this this one you
have pasted in your email doesn't look like it was tab separated.
Also, the "" at the formulas make this CSV file invalid, as they
should have been escaped. In any case, if the file is really separated
by tabs and always looks like this one you have pasted, you can easily
get away by parsing it manually:
lines = []
IO.foreach( "formulas.csv" ) do |line|
lines << line.split('\t').map { |v| v.strip }
end
puts "lines are:"
lines.each do |line|
puts lines.join(" ! ")
end
-
Maurício Linhares
http://mauricio.github.io/ -
http://twitter.com/#!/mauriciojr