pytho read from file code example
Example 1: open text file in python
f=open("Diabetes.txt",'r')
f.read()
Example 2: read and write to file python
file = open(“testfile.txt”, “r+”)
f=open("Diabetes.txt",'r')
f.read()
file = open(“testfile.txt”, “r+”)