Edit and Update data for specific row/column of csv file MFC

时间:2015-08-07 02:21:48

标签: c++ c++11 visual-c++ mfc

How to edit and update data in csv file MFC. I am able to read data from csv file using ReadString().

void ModifyCSVFile(){
     .....
}

1 个答案:

答案 0 :(得分:1)

After you ReadString(), you modify it to your liking and write to another file using WriteString(). When you are done, delete the original file and rename the new one. If you simply want to replace some symbols with the same number of different symbols, you can do that in place.