SHARE
TWEET

Untitled

a guest Oct 21st, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top