View Single Post
Old 07-12-2007   #1 (permalink)
Frank


 
 

parsing csv files with fields that may contain commas

Hi,

What is the best way to parse a csv comma delimeted file which may have
commas in the fields. If there are commas in the field, it is enclosed in
double quotes, ie.

field1,field2,field3
"field1, abc",field2,field3


So, in the second row, the first field would be: "field1, abc"

Thanks in advance,


My System SpecsSystem Spec