From: Siep Korteling Date: 2009-12-14T07:49:27+09:00 Subject: Re: gsub help yermej wrote: > On Dec 13, 2:34�pm, Kvetch Kvetch wrote: >> I am reading in a file that is basically a csv file but the delimiter is >> spaces. �I am also using fastercsv to parse the file into an array. > > Check out the docs for fastercsv - http://fastercsv.rubyforge.org/ - > it looks like the FasterCSV class has default values for separator and > quote characters. You should be able to change those to ' ' & '^', > respectively. Exactly. Like this: ar=FasterCSV.read( path_to_file,{ :col_sep => " ", :quote_char =>'^' }) hth, Siep -- Posted via http://www.ruby-forum.com/.