Skip to content

Simple program that just evaluates whether file1 is identical to file2 or not, and if it's not, returns the differences.

Notifications You must be signed in to change notification settings

jimmc414/file_compare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

File Comparison Tool

This is a simple program that compares two text files and prints whether they are identical or lists the differences if they are not.

Usage

Run the program from the command line by passing two filenames as arguments:

python compare.py path/to/file1.txt path/to/file2.txt

Output

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.

Requirements

  • Python 3.x

License

MIT

About

Simple program that just evaluates whether file1 is identical to file2 or not, and if it's not, returns the differences.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages