Item Date and Time Delivered: Wed Mar 16 11:00:25 2016
Item Name: Amarga
Item Qty: 3
Item Price: 85
________
Item Total: 255
_____________________________________
100106
Item Date and Time Delivered: Wed Mar 16 11:03:01 2016
Item Name: Tampus
Item Qty: 3
Item Price: 20
_________
Item Total: 60
_____________________________________
100107
Item Date and Time Delivered: Wed Mar 16 11:04:40 2016
Item Name: ahaha
Item Qty: 5
Item Price: 20
_________
Item Total: 100
________________________________________________________
100108
Item Date and Time Delivered: Wed Mar 16 11:05:33 2016
Item ID:
Item Name: sula
Item Qty: 5
Item Price: 10
_________
Item Total: 50
________________________________________________________
100101
Item Date and Time Delivered: Wed Mar 16 11:30:31 2016
My code:
ofstream outFile("replaced.txt");
ifstream readFile("Inventory2.txt");
string readout;
string search, id, name,qty,dat,price,total;
unsigned int skipLines = 0;
cout<< "Enter id which you want Modify\n";
cin >>search;
system("cls");
cout<<"Enter new Item ID\n";
cin>>id;
system("cls");
cout << "Enter new Item Name\n";
cin>>name;
system("cls");
cout<<"Enter new Item Quantity\n";
cin>>qty;
system("cls");
cout<<"Enter new Item Date and Time\n";
cin>>dat;
system("cls");
cout<<"Enter new Item Price\n";
cin>>price;
system("cls");
cout<<"Enter new Item Total\n";
cin>>total;
system("cls");