Since the ifstream variable ListNumbers is only used inside the iblock of the if statement on line 51 if you declared it on line 52 instead of line 26 then there would be no problem you will have a new file object every time the user choose to open a file.
The only addition is to reset size inside the same if block before reading the file so you fill the array in from the start again.