Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python compare if 2 files are equal

>>> import filecmp
>>> filecmp.cmp('file1.txt', 'file1.txt')
True
>>> filecmp.cmp('file1.txt', 'file2.txt')
False
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #compare #files #equal
ADD COMMENT
Topic
Name
9+2 =