I am using an array that inputs a numbers from a file. I have to delete the midpoint number and shift all other numbers after the midpoint to the left to fill the space. This works unless the array has not enougth numbers to fill the array so it just keeps prints out the last number twice instead of once. How can I get it to stop printin when there are no numbers left in the file. (Sorry if this sounds complicated) My code is below I am using an array that inputs a numbers from