python read lines in a text file code example
Example 1: open text file in python
f=open("Diabetes.txt",'r')
f.read()
Example 2: python file reading
fin = open("NAME.txt", 'r')
body = fin.read().split("\n")
line = fin.readline().strip()
f=open("Diabetes.txt",'r')
f.read()
fin = open("NAME.txt", 'r')
body = fin.read().split("\n")
line = fin.readline().strip()