Advertisement
Guest User

Untitled

a guest
May 21st, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. with open("list.txt","r") as in_file, open("list2.txt","w") as out_file:
  2.   for line in in_file.readline():
  3.     out_file.write(line)
  4.  
  5. with open("list.txt","r+") as in_file:
  6.   for line in in_file.readline():
  7.     in_file.write(line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement