It looks like the the multiple 'ddd' lines do not contain commas (delimeters). You could check the line to see if it has commas (delimiters). If it doesn't, its not a new record. If it does, parse it as a new record. I know this explaniation is rudamentary, but so is your example.