how to open file .txt code example
Example 1: open text file in python
f=open("Diabetes.txt",'r')
f.read()
Example 2: file.open("file.txt);
myfile = open("example.txt")
txt = myfile.read()
print(txt)
myfile.close()
f=open("Diabetes.txt",'r')
f.read()
myfile = open("example.txt")
txt = myfile.read()
print(txt)
myfile.close()