I hope this is the right forum to put this.
I'm currently working on a project for school in which we need to read information from a file and then store it into an array of an object we create. The file is just a simple .txt file full of different types of information like prices, quantities and names.
The issue I'm having is how to get the data from the file, into my object. I was thinking of using a getline(input, thingy, '\t') -- Along with another getline to seperate lines with a \n instead of \t. But how would I get it to be like, the first thing in the line >> the int variable, the second thing >> float variable, third thing >> string variable.
Any ideas/hints/tips would be greatly appreciated! (Please don't solve the whole thing or write all the code because I really would like to figure this out without it being given directly to me)