I wrote a program that search for substrings and prints the line starting with the substring to the end of the line. I need to add a loop that will continue to check for a occurence of the string until the complete line has been checked.
I wrote the program and also I was able to write a line that will check for the next occurence after the first but I can't figure out how to create a loop that will keep going until the entire line of text has been checked.
I using a couple of arrays so I tried to create a while loop using the size of the array but my array is 80 and the while loop keeps printing out the same last line 80 times.