I said the error was 'found' turning to 'TRUE' which would end the loop, which I knew was wrong because no language does that.
It looked like this (off the top of my head..):
IF accountFile.accountNumber = accountNumber
THEN found = True
accountName = accountFile.accountName...