CSV is a solved problem - RFC 4180: http://tools.ietf.org/html/rfc4180#section-2
As used by Lotus 1-2-3 and undoubtedly others before there was an Excel.
Example record:
42,"Hello, world","""Quotes,"" he said.","new
line",x
Now go write a little state machine to parse it... (hint: track odd/even quotes, for starters)