Skip to main content
my python programs
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
July 17, 2020
Reading content of text file
What is text file?
with open('file.txt') as file_object:
content=file_object.read()
print(content)