Reading from text file & time looping