I am using CSV file with comma as delimiter
getline(strGetLine, word, ',')
I have a problem while reading something which as comma in between
Example -"mysentence,fromCSV"
Please let me know how to handle it.
I am using CSV file with comma as delimiter
getline(strGetLine, word, ',')
I have a problem while reading something which as comma in between
Example -"mysentence,fromCSV"
Please let me know how to handle it.
I would recommend using a library, since this is not a new problem and has been solved several times.
The first example I can find is https://github.com/ben-strasser/fast-cpp-csv-parser, but you could also do something with Boost Spirit if you felt inclined.