I have been searching online trying to find how I can use getline in my program, but haven't found an example that goes with what I'm trying to do. Can getline be used to read line-by-line from a file that is of the format:

A 10482 8 10 09/02/13 4.99 0.50
D 15999
E1 19873 20

I overloaded i/o and this doesn't seem to work because each line has different components. Would getline fix this problem, or do you know of some other function I could use?
Topic archived. No new replies allowed.