Click here to Skip to main content
15,891,687 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to terminate CSV based on comma in below condition?
Column1,Column2,Column3,Column4,Column5,Column6
AB,"I,am,ABC",100.25,"Description, can, contain. multiple: comma;","http://dnl.cashdownload.com/dd/OKOKOKOKO",Hello
Posted
Updated 30-Apr-15 8:39am
v2
Comments
Sascha Lefèvre 30-Apr-15 9:11am    
Is it about reading CSV or writing or both?
Maciej Los 30-Apr-15 14:40pm    
What language: C#, VB.NET?

It's complicated, but there are a lot of ways to make it easier. I prefer this one: A Fast CSV Reader[^] - it does what it says!
 
Share this answer
 
Replace the comma inside the sub-strings by another char - before writing AND ALSO after reading the CSV-file
 
Share this answer
 
Comments
Namit KB 30-Apr-15 8:30am    
But what if I have 5 million of records and each record contain almost 20 column, I want to decrease the time

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900