i am able to print all file line in to rich text box but i have a problem to find a specific word from the rich text box.please help me to solve this trouble.
here is my code for taking input from file and print into rich text box
Dim path2 As [String] = "file path"
Dim d As New StreamReader(path2)
'creating a new StreamReader and passing the filestream object fs as argument
d.BaseStream.Seek(0, SeekOrigin.Begin)
'Seek method is used to move the cursor to different positions in a file, in this code, to
'the beginning
While d.Peek() > -1
'peek method of StreamReader object tells how much more data is left in the file
RichTextBox1.Text &= d.ReadLine()
'displaying text from txt file in the RichTextBox
End While
d.Close()