Project for the Hybrid Publishing thesis award of 2018. By Julie Boschat Thorez and Cristina Cochior. https://www.wdka.nl/work/sic-scripture http://51.255.169.99:8080/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
709 B

#NOW FOR EACH LINE IN MATCHING LINES, IF LINE IN TXT FILE, REMOVE FROM TXT FILE
#lines to be deleted
matchinglines = open("1-matchinglines.txt")
matchinglines = matchinglines.readlines()
#lines not found in the two files
alllines = open("2-alllines.txt", "r")
alllines = alllines.readlines()
unmatchinglines = open("unmatchinglines.txt", "w+")
whatsleft = []
for line in alllines:
# print("=============")
# print(line)
for match in matchinglines:
# print(match)
# print("---------")
if match == line:
# print("True")
line = line.replace(match,"")
# print(line)
whatsleft.append(line)
whatsleft.sort()
# print(whatsleft)
for leftover in whatsleft:
unmatchinglines.write(leftover)