My goal is to read a binary file and convert it to text. My code is :
def binary_to_text(self,file_name):
open_file = open(file_name,"rb")
with open("Binary2Text.txt", "a") as the_file:
for line in open_file:
the_file.write(binascii.b2a_uu(line))
I'm getting this error:
binascii.Error: At most 45 bytes at once
Is there a way to get around this, or is there another module I can use besides binascii? Thanks!