read/write file problem

Oleg Broytmann phd at phd.russ.ru
Mon Apr 17 09:57:39 EDT 2000


On Mon, 17 Apr 2000, j vickroy wrote:
> >>> file = open (file_name, 'r')
> >>> file = open (file_name, 'w')

   Open JPEG (binary) files in BINARY mode!!!

file = open (file_name, 'rb')
file = open (file_name, 'wb')

Oleg.            (All opinions are mine and not of my employer)
---- 
    Oleg Broytmann      Foundation for Effective Policies      phd at phd.russ.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list