Memory capability and behavior is variable. I can remember and keep in mind vast swaths of code, but I am capable of forgetting someone’s name in seconds.
With the text file, I just have to recall on roughly which line the name was and I am able to recall it. I have no idea why or how this works, but it does. I did try to keep a "Mental" list, but that just does not work, I need to type it in or write it on a piece of paper for it work.