I have a program that reads in different text files, with random numbers of lines of text.
How do i setup a loop to stop the program reading in lines of text when it gets to the end of the text file ?
Currently my program gets to the last line, and then continues to read that line in over and over again.