How would one infile an array of numbers from a .txt file? i am trying to make a subprogram that infiles data stored in a .txt file and slightly edits the data based on the result of the program, without changing anything else.
This is what I currently have, it is printing the edited results, however, it is erasing all previous data and restoring it to 0.