Hi
i made program on searching and if a word is present in a file more than one time this program search it one time and exit the file but i want to show all the locations of the searched word in single file
for single search i use the coding
Dim contents As String = objStreamReader .ReadToEnd()
txtfile.text=co ntents
txtfile.Selecti onStart = InStr(txtfile.T ext, "apend")
s = contents.Substr ing(txtfile.Sel ectionStart - 1, 10)
how i can modify the above program so that it search the word on all locations
thanks in advance
varinder
i made program on searching and if a word is present in a file more than one time this program search it one time and exit the file but i want to show all the locations of the searched word in single file
for single search i use the coding
Dim contents As String = objStreamReader .ReadToEnd()
txtfile.text=co ntents
txtfile.Selecti onStart = InStr(txtfile.T ext, "apend")
s = contents.Substr ing(txtfile.Sel ectionStart - 1, 10)
how i can modify the above program so that it search the word on all locations
thanks in advance
varinder
Comment