I\'m trying to output the result of my script into a text file. The script is working fine, the only problem is when results are saved into the text file (output.txt), only
Did you try with parameter 'a' So: f = open("output.txt", "a")
That will open the file with pointer at the end. http://www.pythonforbeginners.com/files/reading-and-writing-files-in-python