Skip to content

Instantly share code, notes, and snippets.

@ycui1
Created April 6, 2021 18:30
Show Gist options
  • Save ycui1/4b8339667d6a47a441442c93a58050a9 to your computer and use it in GitHub Desktop.
Save ycui1/4b8339667d6a47a441442c93a58050a9 to your computer and use it in GitHub Desktop.
# 1. Open the file
file = open("some_file.txt")
# 2. Perform some operations with the file
text_data = file.read()
# 3. Close the file
file.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment