How to write binary to a file in Python | The Dev Tool | Toolel.com
You can use the
bytearray to convert a list of integers which are binary format (e.g. asii).
Afterwards you can write it to a file:
fileBytes = [23, 12, 33]
data = bytearray(fileBytes)
with open (\"filename.txt\", \"wb\") as f:
Created by: martin