Aug-17-2017, 06:09 PM
Hello,
I have a small script I found that will compare 2 files my issue is how can I campare 1 file to many files?
Thanks.
I have a small script I found that will compare 2 files my issue is how can I campare 1 file to many files?
Thanks.
#!/usr/bin/python import difflib old_path = 'Original.txt' new_path = 'New.txt' old_path_file = open(old_path).readlines() new_path_file = open(new_path).readlines() difference = difflib.HtmlDiff().make_file(old_path_file, new_path_file, old_path, new_path) difference_report = open('./diff_report.html','w') difference_report.write(difference) difference_report.close()