How to do iterations more efficiently?

First of all, I am a noob in programming and I always want to know if there are more suitable ways to do things faster/more efficient. I’m trying to load the game from a slot and I have a lot of stages. Doing the loading manually seems like a lot of work and I really interested how you guys/girls approach these kinds of things. Here is my example: