Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #reads a specific line from a text file
- f=open("names.txt","r")
- x = int(input("What line would you like to read"))
- x = x-1
- lines=f.readlines()
- print (lines[(x)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement