I have a for loop that compares the input and a specific line on a text file if they are the same. This is for the log in of my program. But there is something wrong with my for loop. Look
Suppose it can't find the username and password in account[1].txt. The test at line 30 fails and and it resets x to zero. The next time through the loop account[0].txt probably doesn't exist. So it goes through the loop again and checks account[1].txt again. The process repeats forever.