J
Jon Slaughter
I'm trying to replace some bytes in a file using fstream but all I seem to
be able to do is append or 0 the file then write... Basicaly I just need to
replace the first 512 bytes of the file with some buffer(but eventually I
will need to replace random blocks in the file at different locations). Is
there anyway to do this efficiently using fstream? (I know I can duplicate
the file, but it seems a waste to rewrite the same data for no reason).
Thanks.
be able to do is append or 0 the file then write... Basicaly I just need to
replace the first 512 bytes of the file with some buffer(but eventually I
will need to replace random blocks in the file at different locations). Is
there anyway to do this efficiently using fstream? (I know I can duplicate
the file, but it seems a waste to rewrite the same data for no reason).
Thanks.