f1 = open("C:/Users/user/Documents/intro.txt", "r")
f2 = open("C:/Users/user/Desktop/intro1.txt", "r")
i = 0
for line1 in f1:
i += 1
for line2 in f2:
if line1 == line2:
print("Line ", i, ": IDENTICAL")
else:
print("Line ", i, ":")
print("\tFile 1:", line1, end='')
print("\tFile 2:", line2, end='')
break
f1.close()
f2.close()
Can this method be used to compare them?
I tried alot of methods but i dont see any solutions
If anyone could help me that would be great!
I am fairly new to python