In this program, you will learn how to read data from a file line by line in Python.
file = open("abc.txt", "r")
file = open("abc.txt", "r") for i in file: print(i)
john 28