Created
June 20, 2012 04:44
-
-
Save roberthryniewicz/2958154 to your computer and use it in GitHub Desktop.
Read Text in Python
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
>>> file = open('temp_file.txt') | |
>>> text = file.read() | |
>>> file.close() | |
>>> print(text) | |
This is a sample text. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment