Supposedly I have this line in my text file which has the following format.
"Title:Author:Price:QtyAvailable:QtySold"
The contents of my text file is shown below
Hello World:Andreas:10.50:10:5
Lord Of The Rings:Duke:50.15:50:20
(some other records...)
1) User inputs Author and Title.
2) If Program locates the Author+Title, it asks user to Update any of the fields available ( for this case Title, Author, Price etc..
3) For example I will like to update the Price of Hello World book.
4) What can I do to tell the program to extract the contents of the Hello World line, and get into 10.50 to replace the price of the book? (assumes new price of the book will be decided by the user’s input)
Hope to get my answer.
Thanks in advance to those who helped!
Following is a something to get you started:
Sample Script:
Input Data:
Execution: