Advertisement
Guest User

Untitled

a guest
Nov 7th, 2019
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. def read(count):
  2. strings = []
  3. with open("shortkey.txt") as f:
  4. for s in range(count):
  5. q = f.readline()
  6. strings.append(q)
  7. with open("shortkey.txt", "r+") as g:
  8. g.writelines(f)
  9. g.truncate()
  10. return '\n'.join(strings)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement