Answers for "how to compare if two files are identical python"

1

python compare if 2 files are equal

>>> import filecmp
>>> filecmp.cmp('file1.txt', 'file1.txt')
True
>>> filecmp.cmp('file1.txt', 'file2.txt')
False
Posted by: Guest on September-01-2020

Code answers related to "how to compare if two files are identical python"

Python Answers by Framework

Browse Popular Code Answers by Language