simple Binary File to ASCII

Joined
Nov 19, 2010
Messages
1
Reaction score
0
Hey everyone,

I'm relatively new to Python and I'm trying to convert a binary file to ACSII. I've tried using different extensions of the binascii() module, but receive a TypeError that the argument can't be a file.

Am I using binascii incorrectly?

>> f = open( "binaryfile.dat" , "rb" )
>> binascii.b2a_uu( f )
TypeError: b2a_uu() arguement 1 must be a string or read-only buffer, not file


Thanks in advance for your help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,076
Latest member
OrderKetoBeez

Latest Threads

Top