hi, iv got a very simple csv parsing problem. im trying to output the first 3 fields on a flat-file database from the 1st record. here's sample data: 2002,Foo,Bar,999,Wages,2000.00,2010.00,2090.00 ,,,777,Cellphone,150.00,120.00,150.00 ,,,111,Subsidy,400.00,400.00,400.00 1999,Fooz,Bra,999,Wages,2010.00,2320.00,2210.00 ,,,777,Cellphone,150.00,120.00,150.00 ,,,111,Subsidy,400.00,400.00,400.00 so final output will look like: 2002,Foo,Bar,999,Wages,2000.00,2010.00,2090.00 2002,Foo,Bar,777,Cellphone,150.00,120.00,150.00 2002,Foo,Bar,111,Subsidy,400.00,400.00,400.00 1999,Fooz,Bra,999,Wages,2010.00,2320.00,2210.00 1999,Fooz,Bra,777,Cellphone,150.00,120.00,150.00 1999,Fooz,Bra,111,Subsidy,400.00,400.00,400.00 i know my logic's bent & im getting infinite loops, so i won't even bother posting my code. any help much appreciated.