I want to extract specific string from a text file.
I have tried 2 methods but struck on same point:
- I have read the text file and saved data in form of list of string type.
- I have read text file and saved data in a single string variable using ReadLine.
My problem is how to get index of specific words from string or list so that I can use substring method to get substring containing data between specific words.
I am using IndexOf to get index of that word but everytime I am getting 0 as result.