open the sample file used
file = open(‘logFile.txt’)
read the content of the file opened
content = file.readlines()
print(content[287:330])
#need to print separate line for 287 line to 330.
i am expecting separate line.
Kindly help me.
New contributor
thangalakshmi Mani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.