the quoted text files were created by a commercial database.

What your code needs to do is ignore the commas within two " marks.
For example:
"abc","def","g,hi","jkl"
Your code needs to ignore the comma between g and h.