Tuesday, July 14, 2009

In C programming...?

how do i delete a character in a textfile using c?, if for example i have a text file containing these text:


"programming fundamentals", and i want to delete 'fundamentals', how do i code that?

In C programming...?
I imagine you would go to a certain buffer location(seekp) and replace the strings with space by writing to the file(fstream.write()). Another method would be to read the file into memory, do the replacement and overwrite the whole file.


No comments:

Post a Comment