I have a big binary file. How I can write (prepend) to the begin of the file?
Ex:
file = 'binary_file'
string = 'bytes_string'
I expected get new file with content: bytes_string_binary_file
.
Construction open("filename", ab)
appends only.
I'm using Python 3.3.1.