I have the following in a file
code name amount_sold amount_available
for example:
457654 rice 84 10000
875 corn 44 1455
I need to ask the user what product (code) he wants to change the amount sold, and it exists (search by code) change the amount sold and therefore the amount available.
Ive already coded the part where the user inputs the code and checks if it exists. How ever, I cant seem to be able to put the amount available in a char * so I can control it. If anyone could help me I would be most grateful