Raimon Fs wrote:
> Hello,
> 
> I'm importing CSV files without problems, now, I have some of them that
> use the semi-colon instead of the comma as a field separator, I'm trying
> to adapt my Ruby code for that, but Ruby puts all the columns in the
> first element, without using the new value as a separator:
> 
> here's the code:
> 
>    CSV.open(arxiu.file_path , "r", :col_sep => ?;) do |row|

col_sep is an optional argument, the call to open is:

     CSV.open(arxiu.file_path , "r", ?;) do |row|

Tiziano
-- 
Posted via http://www.ruby-forum.com/.