> I'm going to pursue this a bit further on Windows, first. There must > be some way to write binary output.
And indeed, the Python Cookbook (http://aspn.activestate.com/ASPN/Cookbook/Python) has the answer. Here it is: import sys if sys.platform == "win32": import os, msvcrt msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) I've incorporated that into the code. Try it out! Bill