Bascially what I want to do is writing a python script that creates files with a count-number in the filename, "file 1.txt" "file 2.txt" "file 3.txt"
for example.
I have come this far:
import shutil, os, itertools
for i in itertools.count():
file = open("FILE " + str(i) + ".txt", 'w+')
print(i)
time.sleep(1)
Basically what I can do is count, but the file creation is my problem. open() doesnt seem to work.How do i create these files and how can I choose the directorys to store the files?