I have this example array
endings = ["Example1","Example2"]
This is my save code
reader = open("e_save.txt","r")
append = open("e_save.txt","a")
for i in endings:
print(i)
if i not in reader.read():
append.write(os.linesep)
append.write(i)
print(reader)
If I run it multiple times I get outcomes like this: Example1 Example2 Example2 Example2 It just adds more and more however the first one works perfectly. Anyone knows a fix?