Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am working in a wpf project.i need to read/write csv file.i can read the csv file.but when i write new record the old record gone.would you please help me.is there any alternative of csv. thanks in advanced...
Posted

1 solution

It is hard to guess what your problem is without seeing your code, but I believe you simply overwrite the file e.g. by using File.WriteAllLines. You should append your lines instead by using e.g. the function File.AppendAllLines.
 
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