Python Read File Line by Line || File Handling || Python
In this we are going to see a basic program to read a file line by line in Python Programming Language.



def read_file_line():
    f = open("file.txt", "r")
    for line in f:
        print(line)
    f.close()

read_file_line()

# Coded By Dhiraj Shelke


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post