0

how to delete some part of file in c with example?

suppose i have file in which data stored is 'hey everyone please help me' and i know with fopen() i can read ,write and append file but question is that in file 'hey everyone please help me' how can i delete some part of file not whole file like if i want to delete 'please' or 'help me ' how can i do this.

29th Jul 2017, 8:54 AM
Frankestine Stine
Frankestine Stine - avatar
2 ответов
29th Jul 2017, 9:49 AM
Hatsy Rei
Hatsy Rei - avatar
0
You can read data from file into variable in your programm, then manipulate with variable and then write data from variable into file. If there is a little data in file, it can be a most simple way, I think :)
29th Jul 2017, 9:19 AM
Paul Ivanov
Paul Ivanov - avatar