This might sound silly, but I'd like to know how to do the following.
I've created a .txt file. The content of the .txt file is the word "hi" without the quotes. So the .txt file contains 2 characters. When opening the .txt file in a hex-editor one sees 2 hexadecimal pairs, namely "68" and "69":
Offset
00000000 68 69 hi
What I want to do is the following. I want to take the "69" hex-pair and put it at a very specific address on the hard disk. So basically I want to take a byte and place it at a very specific address on the hard disk.
So "68" should be at address n and "69" should be at address n+1000000.
Now this is the silly part, after having done this I want my .txt file to still be 2 bytes large and I still want to be able to open my .txt file in Notepad and see the word "hi". How can I do this?