My question is, how can I use this to open a new file within every iteration of a for loop? For example, suppose my files are named 'image1.png', 'image2.png', etc.
I'm assuming I can't assign the (const) variable again in a for loop, but can I define the variable inside the loop? Any other way to accomplish this?