I am very new to Python and have question. How in Python check if two files ( String and file ) have same content ? I need to download some stuffs and rename, but I don’t want to save same stuff with two or more different names (same stuff can be on different ip addresses ).
Share
If the file is large, I would consider reading it in chunks like this:
compare.py:
file.txt:
This program prints True if the string and file match