For a project of mine, I'm trying to read a file of Integers and save each line into a file. Each of the files I'm reading have a different amount of lines.
The file would look like
17
72
61
11
63
95
100
Is there a way I can use a loop and save the value in a different variable for each line?

