I'm writing a program which is reading in values from a text file in two different parts.
For part 1, I have used scanf to read in values up to line 3.
For part two, I need to use all lines of the text file (5 lines) to make a calculation.
How do I go about doing this?
I've tried doing a second scanf but that isn't quite working.