I’m curious what code I would use to read from a file and make it input the information into different arrays…lets say I have a list of items on each line of the file. First product number, then name, then price, then a character telling if its taxable or not. How would I make ifstream read into different arrays so that I can keep the information organized. Can someone give me an example of a code that would read the product key and store it in an array and then store the name in the next array, then after it stores the products taxable, it starts back at the first array for the next item
Thanks