I was suggested to use a separate file as a counter to give my files sequential file names, but I don't understand how I would do that. I need my file names to have sequential numbers, like file1.txt, file2.txt, file3.txt. Any help is appreciated!
Edit: My mistake, I forgot to say that the code makes 1 file when it's executed, and needs a way to make a new separate one with a different file name.
More Edit: I am taking a screen shot basically and trying to write it to a file, and I want to be able to take more than one without it being overwritten.