From: Kvetch Kvetch Date: 2009-12-14T12:44:44+09:00 Subject: Re: gsub help Siep Korteling wrote: > 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 Thanks Siep. I got it to work nicely. I appreciate you and Yernej's help -- Posted via http://www.ruby-forum.com/.