I'm trying to make a GUI where a button writes a certain string of text into the 'link_list' txt file. When this line of text is written it stays on the same line. I want the line of text, printed from the button, to go to a separate line each time it is printed
f = open('link_list.txt', 'a+')
f.write("test ")
f.close()
(I repeated the function 5 times to better show what i meant
Output:
test test test test test
Intended Output:
test
test
test
test
test