Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #copies the contents of one text file to another.
- import random
- f=open("alice.txt","r")
- start = input("Press the 'G' key to go!!!")
- if start == "g":
- for x in range(0, 3666): #number of lines in the text file source
- lines = open("alice.txt").read().splitlines()
- myline =(f.readline())
- g=open("alice_copy.txt","a")
- g.write(str(myline) + "\n")
- print(myline)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement