Anka_Ame wrote:
saves my only the last output
Are you, by chance, creating the file each time and not appending to the file? Creating the file each time you save would seem like it only saves the last value. If you want all of the values in the same file, you need to append the values in the file.
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy