Hello,
I have a text file and I need to change a part of it, but I'm not sure if that's possible.
Let's say the file looks like this:
a
b
c
d
I opened the file in the 'r+' more (update mode). I want to replace the 3rd char, 'c', with '3' but I don't know of a way to do it. I can use fseek(file,3,0) to get to the 3rd char in the file and I can write '3' there but I don't see a way to delete 'c'.
Any help would be greatly appriciated, thanks.