Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. file = open('path_to/somefile') #Creates an iterator pointing to the first element of a file
  2.  
  3. for line in file:
  4. print(line)
  5.  
  6. file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement