How to replace the bytes in a given binary file?. : Ex: my binary file test.bin having 11 22 33 44 55 66 ...
I want to modify the 3rd position with 'AA' and finally my test.bin file should be like 11 22 33 ***AA*** 55 66 ....

Can you please anyone answer this?

Thanks in advance.. 