If all you want to do is change a single byte in a file - rather than copy the file - take a look at seek.
You can use it to move to an arbritary point in a file. You can then just overwrite the byte you want to change rather than copying the whole file.
In reply to Re: Copying binary data efficiently
by adrianh
in thread Copying binary data efficiently
by mildside
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |