binary comparison of file object

Werner Schiendl ws-news at gmx.at
Mon Mar 12 17:14:06 EST 2001


If the files are small enough, you can read both into a string (with
read() ) and compare those.

hth
werner

Lee, Jaeho <Jaeho.Lee at brooks.com> wrote in message
news:mailman.984429074.25277.python-list at python.org...
> Hello,
>
> I am trying to compare the contents of binary file. Checking if the files
> are same or not is enough.
> Does anybody has idea? Comparing file object in python always return
FALSE.
>
> Thanks,
> /Jaeho
>





More information about the Python-list mailing list