Help with c++ program read from a file to arrays?

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

This entry was posted in Uncategorized and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>