Is there any way to change the value of a single byte in a binary file? I know that if you open the file in `r+b` mode, the cursor is positioned at the beginning of the existing file and anything you write in that file will overwrite the existing content.

But I want to change only 1 byte, for instance, in a file. I guess you could copy the content of the file that should not be modified and insert the desired value at the right place, but I wonder if there is any other way.

An example of what I would like to achieve:
Change 3rd byte to 67

Initial file:

```
00 2F 71 73 76 95

```

File content after write:

```
00 2F 67 73 76 95

```