read text file line by line using the readline 28 29 function

Solutions on MaxInterview for read text file line by line using the readline 28 29 function by the best coders in the world

showing results for - "read text file line by line using the readline 28 29 function"
Hazeline
08 Sep 2020
1# Program to read all the lines in a file using readline() function
2file = open("python.txt", "r")
3while True:
4	content=file.readline()
5	if not content:
6		break
7	print(content)
8file.close()
9
10
11