From: Junkone Date: 2007-12-08T05:54:59+09:00 Subject: Re: fastercsv error On Dec 7, 3:24 pm, James Gray wrote: > On Dec 7, 2007, at 12:30 PM, Junkone wrote: > > > When i try to parse this file, i get a error. > > Can you show the error please? > > James Edward Gray II when i try to print the row, it returns nil. pl see below. it means that this tool could not parse the data. irb(main):045:0> rows=FasterCSV.new("c:\\temp\\mktsymbols.txt", {:headers=>true,: col_sep=>"\t"}) => #/\n\z/, :leading_fields=>/ \A(?:\t)+/, : csv_row=>/ \G(?:^|\t) # anchor the match (?: "( (?>[^"]*) # find quoted fields (?> "" [^"]* )* )" | # ... or ... ([^"\t]*) # unquoted fields )/x}, @row_sep="\n", @return_headers=false, @headers=nil, @col_sep ="\t", @use_headers=true, @skip_blanks=false, @io=#, @quote= #, @quote_char="\""> irb(main):047:0> rows.each{|r| puts "row found"} => nil irb(main):047:0>