This seems to be ok
with open(file_name,"r+b") as f:
mm = mmap.mmap(f.fileno(),0)
p_f = 10
source_frame_array = bytearray(100)
source_frame_array = mm.read ()
with open(write_file,"r+b") as w:
for n_f in range (0,int(3)):
for n_p in range (0, p_f):
n_e = 0
for n_e in range (0, 5): ...
I have a MiniPro TL866 programmer which uses binary files.
Many other things use binary files as well, e.g. Word files (.DOC) are binary, Windows Executables (.EXE) are binary and Linux Executables as well (ELF fomrat). The point is: there is no "the binary format", there are thousands.
And each of these binary formats has it's own, very specific editor. ...
Whenever I need to compare, synchronize or merge contents of drives, folders or files I use Beyond Compare. It's very powerful and fast (I've linked the feature list, have a look).
I've attached an image of a hex comparison of two text files. As you can see there are differences (red). With Beyond Compare I can now either mark multiple lines or right click ...
Emacs + nhexl-mode
Emacs is a text editor with a lot of features and enormous extensibility.
Emacs has a built-in mode to edit binary file called Hexl mode. However, it only supports overwriting, which is the limitation you want to overcome.
There's a package (plugin) called nhexl-mode which solves this problem. You can install it through Emacs's package ...