magine there is search box (textbox), and below there are a search button with a rich text box.
My text file located in the drive C is like this:
Product: Cement Size: Big: Cost: 245 Type: Construction
Product: Iron Size: Big Cost: 123 Type: Consruction
Product: Glass Size: Small Cost: 23 Type: Non-Construction
Product: Chocolate Size: Small Cost: 10 Type: Food
I want to search only two types of items in my text file located in drive C, namely: Construction and Non-construction. When the user will type a product name, OR size, OR whatever, he must get results only for the Construction or Non-construction. The user must not get results for the Food. And the user can make misspelling of words in the search, so the Search box must tackle it. And yes, the results should appear on the rich text box on the form itself.
My question is:
1/ What is the code of doing the Search according the criteria above?
All I know I have made a srteamreader code but when clicking on the search button, it is giving me all the texts i wrote in the text files. However, I want only some lines to be read.
Thank you!