Created
April 6, 2021 18:30
-
-
Save ycui1/4b8339667d6a47a441442c93a58050a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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