Jonathan Hogg <jonathan at onegoodidea.com> wrote in message news:<B9758078.F34E%jonathan at onegoodidea.com>... > Not sure if this is the problem, but try adding the 'b' binary flag to the > opens (i.e., 'rb' and 'wb'). Thanks, solved the problem! Johann