How do I store a string containing quotes or commas in to a csv file and retrieve it later without having my output split up?
Asked
Active
Viewed 2,822 times
3 Answers
3
Best thing is to use api's meant for reading/writing csv's like opencsv
Can you recommend a Java library for reading (and possibly writing) CSV files?

Community
- 1
- 1

Aravind Yarram
- 78,777
- 46
- 231
- 327
0
Don't parse it yourself, use a library like this to do so: http://ostermiller.org/utils/CSV.html
This way, you don't need to worry about double quotes or commas in the string, etc.

limc
- 39,366
- 20
- 100
- 145