1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
int i = 0;
while(!infile.eof() && i < MAX_BOOKS)
{
getline(infile,bookArray[i].item_name, '\t');
getline(infile,bookArray[i].listing_id, '\t');
getline(infile,bookArray[i].seller_sku), '\t';
infile >> bookArray[i].price, '\t';
infile >> bookArray[i].quantity, '\t';
getline(infile,bookArray[i].open_date, '\t');
getline(infile,bookArray[i].item_note, '\t' );
getline(infile,bookArray[i].item_condition, '\t');
getline(infile,bookArray[i].product_id,'\t');
getline(infile,bookArray[i].market, '\n');
i++;
}
| |