I'm currently working on a project and a part of the project is to output something to the project directory in a sepereate .txt file, I have completed that but I have a problem, everything works GREAT but I don't want to create a new file every single time but I want to have everything and all records stored in only one file and that they just keep adding up, can someone help me?
Here's a part of the code I've came up with, don't bother about the "%d" etc. I just need help with output :
output = createWriter("rekordi.txt")
output.print("Tvoj zadnji rekord je " + str(millis()/1000-sekunde) + " sekund || ob " + str(datum.strftime("%I:" + "%M" + " %p" + " na " + "%d." + "%b"))) # Write the date to the file
output.flush()# Writes the remaining data to the file
output.close()# Finishes the file