Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want make simple code for read data from csv file and next write in another csv.
Is there any simple code as reference for that?
Regards,
Posted
Comments
ThatsAlok 28-Dec-11 2:27am    
I could provide you with direct link, however i thought giving you with pseudo code/algo would be better. can't you read file, line by line (remember fstream.h ) and parse it based on Comma (,) using strtok function ( remember string.h) and again write to new format

1 solution

There's a good answer for a similar question on stackoverflow; CSV Parser in C++[^].

Check out the top answer for that question, it should point you in the right direction.

Hope this helps,
Fredrik
 
Share this answer
 

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