First let me tell you what my program is doing. its basically a shopping list program. Whereby the user will input the values and it is then inserted into a text file. There will be 3 inputs (Item Description,Unit Price,Quantity Purchased) and is stored into the text file as (Shoes:$200:2)...
getline reads a line from the file. What do you have in one line of the file? That's a big clue as to why the line in the file is displayed as the item description.
I know i need to use the getline() and use a delimiter but i dont know how to put it in my code.
Try Googling for getline or reading your book about it.