File Comparator is a simple Python tool designed to compare the contents of two text files and identify unique lines in each file. It's useful for quickly finding differences between two lists or text datasets.
- Compare two text files line by line.
- Generate output files containing unique lines from each input file.
- Handle sorted text files in lexicographic order.
These instructions will help you set up and run File Comparator on your local machine.
- Python 3.x
Clone the repository or download the source code to your local machine. No additional installation is required, as File Comparator uses Python's standard libraries.
-
Place your input text files (
input1.txt
andinput2.txt
) in the project directory. -
Run the script from the command line:
python src/compare_files.py
-
Check the output files (
output1.txt
andoutput2.txt
) in the same directory for the results.
To run the unit tests for File Comparator:
python -m unittest tests/test_compare_files.py