In this we are going to see a basic program to read a file line by line and store in list in Python Programming Language.
def read_file_list():
f = open("file.txt", "r")
lines = f.readlines()
f.close()
print(lines)
read_file_list()
# Coded By Dhiraj Shelke
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP