Jun 28, 2018 at 3:19am
You have a file full of numbers so why are all your variables characters?
Do you realize that array elements start at zero and stop at size - 1?
Have you considered using two for() loops for your data entry loop instead of the single while loop?
Have you run the program with your debugger? Your debugger should be able to tell you exactly where it detects the problem.