Skip to content

Instantly share code, notes, and snippets.

@raresteak
Created July 7, 2021 11:21
Show Gist options
  • Save raresteak/0be81732236ba14673df455e7e28c582 to your computer and use it in GitHub Desktop.
Save raresteak/0be81732236ba14673df455e7e28c582 to your computer and use it in GitHub Desktop.
Opening a file with Python
with open(path/to/file) as file:
for line in file: print(line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment