How to edit text file data with c++
问题 I have a program that create a text file of stock items, which contains detail of 'total production' , 'stock remaining' and so on. Now my question is how do I edit that text file with my program. For example if I mistake to enter a correct data (like production was 500 pieces but enter only 400) now how can I edit my file to make it correct without effecting other data. 回答1: You probably should not create a text file in the first place. Did you consider using sqlite (or indexed files à la