- 1

How to delete some part of file not whole file how can i do this in c?

i know that in c fopen("filename","w"); with w i can delete whole file but i don't want to delete whole file just want to delete some part of file

25th Jul 2017, 2:58 PM
Frankestine Stine
Frankestine Stine - avatar
1 Odpowiedź
+ 11
You will have to write all info of the file into arrays, and then delete the specific array contents which contains the lines you want to delete, and then write the array contents back to the file.
25th Jul 2017, 3:08 PM
Hatsy Rei
Hatsy Rei - avatar