This is a simple program that compares two text files and prints whether they are identical or lists the differences if they are not.
Run the program from the command line by passing two filenames as arguments:
python compare.py path/to/file1.txt path/to/file2.txt
If the files are identical, the program will print:
The files are identical.
If the files are not identical, the program will print the differences, with a few carriage returns between the file1 and file2 output to visually line them up.
- Python 3.x
MIT