I have a loop that’s reading over a text file. Each time the loop finds something different, I want it to make a new variable and assign the value in that line of text to the newly created variable. So if the text file looks like this:
3
3
6
1
3
6
The program would’ve made 3 variables, one for 1, one for 3, and one for 6. How can I do this>
What you likely want is this…