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.
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.
"The Internet treats censorship as damage and routes around it." - John Gilmore
Why not use the std-C functions? fopen("somefile", "r+"); Then fseek() back one char.
I could try, yes
"The Internet treats censorship as damage and routes around it." - John Gilmore
If you really want a non-portable Win32 function then use SetFilePointer.