Answers for "read all text file python"

0

read all text file python

# Open a file: file
file = open('my_text_file',mode='r')
 
# read all lines at once
all_of_it = file.read()
 
# close the file
file.close()
Posted by: Guest on September-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language