import time
file = open("abc.txt","r") #<-- Opening file as read mode
data = file.read() #<-- Reading data
file.close() #<-- Closing file
data = data.split("\n") #<-- Splitting by new lines
for i in data: #<-- Looping through splitted data
print(i) #<-- Printing line
time.sleep(3) #<-- Waiting for 3 seconds
1
solved How do I print lines separately from a txt file in Python 3?