Sorry I'm not an expert at VB =( I started learning about 2 weeks ago--teaching myself searching internet forums like this & just messing around. I don't have a quick solution right off hand.
Did you see the 2 other links I added into my post via an edit (the code snippet)?
Personally, my first instinct was to use a for loop to count through the lines & perform the search like that.
I found another link that should help you a bit more!
http://www.vbforums.com/showthread.php?t=415639You aren't wanting to delete the lines with that text, but if you adapt that code to count through the lines of the text file, I think you can get it to work.
Inside your for loop, you'd probably want to use an If statement to limit which lines to perform the search.
I just re-read your first post, and I think I might have missed a major detail.
You said you wanted to find all text after /
Does this have anything to do with a file list/directory? Because chances are--if you're wanting a PLAIN file list (without paths, there's some command prompt code you could execute via VB to write a .bat file that would do this very easily)
Also, have you thought about having the VB code write a NEW text file by replacing the text BEFORE the last / with [nothing]?
Everything I've been doing recently is for VBA in excel, so a simple replace text might accomplish this.
However, if you're wanting a file listing--that could be VERY much simplified.
QUOTE(cindrella_win05 @ 6 Aug, 2008 - 01:02 PM)

QUOTE(cmount @ 6 Aug, 2008 - 12:55 PM)

QUOTE
Thanks for your guidance...but i don need to append any text,i jus have to search for coresponding text & display it...so plz explain me dat...
The example in the previous is a generic example; I'm not entirely sure how to do exactly what you want; others can help you more. I have a feeling the sentiment of this forum is they want you to show some (even a very awful) attempt at code. I'm trying to get you to the point where you can show something you are thinking of doing--so others can pick up what I'm not sure how to do.
Take a look at this thread
http://www.dreamincode.net/forums/showtopic4091.htmA lot of times you can find code sort of similar & then do a little researching to figure out how to adapt it to do what you want.
ok lemme try with this exampleee...
open "c:\windows\somefile.txt" for input as #1
do until eof(1)
line input #1, tmpvar
if left(tmpvar, 1) = "5" then
' /* Do something here with line 5 of the file */
msgbox "Line 5 is: " & tmpvar
end if
loop
close #1' /* This Assumes format: 1. c:\path\file.txt */
By this above code i can open & read a file & print the correspondin line in the message box...Now my question is wat shud i do if i need to search for a particular line say for example the line starts with ">150" & to print the text after the "/" symbol in those lines...