inputting of files and storing to variables
I have to input text from a file and it will be in the following format
feet or meters
pressure etc (this shouldnt be too hard)
I'm thinking of using a for loop with peek() to look ahead so I can get that but my real problem comes when I get to the numers
(number,number,number) now these points are going to make a (number,number,number) triangle. I need to use pointers I'm pretty sure of that. I dont know how to store the numbers from the text file to a float variable. I can't remember how to use the pointers to keep this process up till I get to the end of the file.
I've looked through 2 books on it and several pages and found this forum. I hope someone can help me.