Input From a Text File - A Specific Problem.
Hi, this is my first post so I'm unsure what sort of information people require to help me, as such I apologise in advance if I don't explain myself very well!
The Problem: I'm required to write a program to read 50 numerical values in from a text file, which has been provided, and to use these values in doing some calculations further on in the program. These values should be read directly from the file, without any unnecessary user interaction. These values are x and y values, all either positive or negative decimal numbers. They are arranged in the table as such:
x1 tab y1
x2 tab y2
...
xn tab yn
My Problem: I haven't any idea of where to start, to be honest. My lectures in programming have been hard to follow, to say the least and I can't get my head around file input. What I want to do for the moment is to write a mini program to solve the problem and to print a few of the read values to show that the program is doing what it has been designed to do. Any help and moreover explanation would be very much appreciated.
Thank you in advance.