Thank you,Reading binary file in Python, and find a byte sequence:
https://stackoverflow.com/questions/321 ... on#3217350
So the solution begins with:
Code:
with open(filename, 'wb') as f: s = f.read()s.find(b'\xff\xc0')
...and then? how to do the overwrite, not a string replacement, finishing with a "null" termination?
It is crucial to keep the oveall file length unchanged.
Please accept my apologies if i am asking something that appears easy to experts.
Statistics: Posted by rin67630 — Wed Jul 03, 2024 4:23 am