> On 08 Nov 2015, at 22:27, kent nyberg <k...@z-sverige.nu> wrote:
> 
> Well, lets assume I want to write and read binary.  How is it done?

With the functions 'open()' and 'read()' and 'write()'. If you're on Windows, 
don't forget to include a 'b' in the mode string of the open() call, otherwise 
Python will assume that you're opening a text file.

You also might want to look into the 'struct' module, functions 'pack()' and 
'unpack()'. They convert python values to their binary representation which is 
used in binary files.

Greetings,



-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to