I think there is a in-place re-write function which WriteFile supports, but fwrite does not support.
Suppose I have a file, and the content is "foo is content", I want to change the content of the file to "goo is content".
If I am using WriteFile API and open with CreateFile API (generic read | write, and open existing option), I can only write one byte 'g' to replace content in-place.
But when using fwrite, there is no in-place re-write function, and I have to use "a+" mode to open a file and re-write all content "goo is content". Right?
Are there similar functions in fwrite providing in-place re-write function?
thanks in advance,