What is the procedure in Python for opening a very large binary file in read/write mode, and overwriting individual bytes or sequences of bytes?
I'm working with huge files that are many GB, and I would like to seek(arbitrary_long_integer), and overwrite what's there (instead of appending or inserting). I need to avoid loading the huge file into memory, since it is so big. I just want to overwrite it on the disk.
I've looked around at various Python file operations tutorials, and I haven't found what I need.
Thanks in advance!