Hi
I have the following script that counts the amount of words in a file, prints an output, closes the file and then waits for 10secs. I need the script to repeat itself after it was waited the 10secs, anyone know how I can do this?
import time
text = open("c:\\file. txt").read()
v = text.count('wor d')
if v > 2:
print "has words"
text.close()
time.sleep(10)
Thanks
I have the following script that counts the amount of words in a file, prints an output, closes the file and then waits for 10secs. I need the script to repeat itself after it was waited the 10secs, anyone know how I can do this?
import time
text = open("c:\\file. txt").read()
v = text.count('wor d')
if v > 2:
print "has words"
text.close()
time.sleep(10)
Thanks
Comment