Is there a way I can replace a byte in file without reading the whole file and then emptying it and writing the whole thing again? WriteFile() only adds to a file.
Printable View
Is there a way I can replace a byte in file without reading the whole file and then emptying it and writing the whole thing again? WriteFile() only adds to a file.
Why not use the std-C functions? fopen("somefile", "r+"); Then fseek() back one char.
I could try, yes :D
If you really want a non-portable Win32 function then use SetFilePointer.