It looks like itemID and pOrdered are arrays, but your putting the data into regular variables. If they are arrays, try this way. ( This is how I did mine, with different variables, of course ;) )
1 2 3 4 5
int count =0;
while ( in >> itemID[count] >> itemName[count] >> pOrdered[count] >> pInStore[count] >> pSold[count] >> manufPrice[count] >> sellingPrice[count])
{
count++;
}
The file being read, will close when the end of file is reached.
thank you so much! i knew it was something small! i totally get it now lol, i was comparing with older work that i did but i failed to realize i wasn't using arrays in that older work, thank you again!