How to read a specific value from a text file and then save the value in another text file.
Example:
in data.txt file there is some values.
Item Name : m-01
Item Brand : One Man
Item size : XXL
Item Price : 1000
Item vat : 15%
these are the data saved in data.txt
Now my program will ask for the item name and when I will write the item name(ex:m-01) It will just take the values 1000 ( price ) and 15 (vat) and then will save them in a new txt file data2.txt
How can I do this?
Help me please.