Cannot open a file from SD when using multiple loops [SOLVED]

Please post the latest version of your program in your next Reply. Also, please don't post photos of text, just copy and paste the text.

...R