Answers for "how will you open a file for reading as a text file"

18

open text file in python

f=open("Diabetes.txt",'r')
f.read()
Posted by: Guest on April-25-2020
0

file.open("file.txt);

myfile = open("example.txt")
txt = myfile.read()
print(txt)
myfile.close()
Posted by: Guest on August-30-2020

Code answers related to "how will you open a file for reading as a text file"

Python Answers by Framework

Browse Popular Code Answers by Language