Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #display the contents of a text file line by line with timings.
- import time
- def line():
- while True:
- print(f.readline())
- time.sleep(1)
- f=open("data.txt","r")
- print("text file reader v1.0")
- start = input("Press the 'G' key to go!!!")
- if start == "g":
- line()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement