I am currently working on a program that gathers a payroll code, and compares the entry of payroll code to a text file and then displays the appropriate payroll amount. The user is given a sentinel value of 0 when they want to end the program. I cannot get the program to terminate at the input 0. Additionally, the program only returns the first line of the text file, regardless of the payroll code entered. I have included the source code below, and the content of the text file to search and return the payroll amount. Hopefully a fresh set of eyes can help point out what step I missed to get the program to function completely. Feel free to point out any other errors that may exist in my code as well.