There is text file in which there is 100 pages out of 100 pages there are only few pages containing specific unique keyword.I want only those pages ex.(There are 100 pages in that few pages contain
(ex.Note keyword) I want only that pages containing Note keyword and it is structured Text file.
@Addy_619
Give a try on split the text into an array with a split functionality on Mumbai
May do some optimizations e.g. trim or RegEX for cleansing up the text
Iterate classical over the array and identify the pages by keyword e.g. with a contain
add relevant pages e.g. with add to collection to a list of strings
For last actions (Identication, filtering relevant pages) a LINQ statement can help as well
You need pages with Keyword means you need content of only those pages right?
I have written small process for you with your text file, split would help you to achieve it.