[Tutor] Writing BINARY-CONTENT

A.M. Kuchling amk at amk.ca
Fri Nov 21 10:13:44 EST 2003

On Fri, Nov 21, 2003 at 03:47:29PM +0100, Stefan Dieck wrote:
> a = open('c:\\test.me', 'wb')   # opens a file for binary writing

This is correct for writing binary.  Are you sure that the program or editor 
you're using to check this isn't opening the file in text mode (with 'r'
instead of 'rb')?


More information about the Tutor mailing list