<filename>BOOK/MAIN/05-file-handling/chapter-5-examples/05-print-the-marks.py
# Print the total records 

fileObj = open('marks.txt',"r")
while str:
    str = fileObj.readline()
    print(str,end="")
fileObj.close()
<filename>BOOK/MAIN/05-file-handling/chapter-5-examples/05-print-the-marks.py
# Print the total records 

fileObj = open('marks.txt',"r")
while str:
    str = fileObj.readline()
    print(str,end="")
fileObj.close()
# Print the total records