Replace write in fstream
From: Jon Slaughter (nobody_at_nowhere.com)
Date: 12/29/04
- Next message: Jon Slaughter: "Re: Replace write in fstream"
- Previous message: ChasW: "Re: problem with rand()"
- Next in thread: Jon Slaughter: "Re: Replace write in fstream"
- Reply: Jon Slaughter: "Re: Replace write in fstream"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Dec 2004 22:22:07 -0600
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.
- Next message: Jon Slaughter: "Re: Replace write in fstream"
- Previous message: ChasW: "Re: problem with rand()"
- Next in thread: Jon Slaughter: "Re: Replace write in fstream"
- Reply: Jon Slaughter: "Re: Replace write in fstream"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|