Skip to content

Instantly share code, notes, and snippets.

@griiid
Created March 18, 2021 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save griiid/0bc89d3acd7aee2654dec8ebfe4c9ceb to your computer and use it in GitHub Desktop.
Save griiid/0bc89d3acd7aee2654dec8ebfe4c9ceb to your computer and use it in GitHub Desktop.
with open('/path/to/some/file/you/want/to/read') as file_1, \
open('/path/to/some/file/being/written', 'w') as file_2:
file_2.write(file_1.read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment