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')? --amk