I have a CSV file. For eg,
field1,field2,field3,field4
I am parsing the file using getline and ',' as delimiter. The problem is when one of the fields itself contain a ',' then parsing leads to incorrect results.
So, I would like to escape ',' that is present within any field while writing the CSV file. Since there is no special escape character for ',' as for '\n', I have no clue on how to do this. Please help me.