From: Daniel N Date: 2006-05-29T13:12:44+09:00 Subject: Re: FasterCSV RCR? ------=_Part_10398_31711305.1148875959102 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cheers. thanx so much for that. I'll get out of your thread now On 5/29/06, James Edward Gray II wrote: > > On May 28, 2006, at 10:39 PM, Daniel N wrote: > > > Thanx Logan, > > > > Sorry I should have been a bit clearer. I read those but what I > > had trouble > > with was when I receive the csv file from a web form. It gives me a > > StringIO object and I don't know what to do with it. > > > > Any help is greatly appreciated. > > FasterCSV handles StringIO objects just fine: > > >> require "stringio" > => true > >> require "fastercsv" > => true > >> data = StringIO.new(%Q{1,2,"3,4",5}) > => # > >> FasterCSV.parse(data) > => [["1", "2", "3,4", "5"]] > > Hope that helps. > > James Edward Gray II > > ------=_Part_10398_31711305.1148875959102--