I'm not sure if I get you either, but if I do, something like this would work:
VB Code:
Do While Not EOF(1) Line Input #1, strReadLine If InStr(1, strReadLine, "S ") Then If InStr(1, strReadLine, "/") Then 'Do some events ElseIf InStr(1, strReadLine, "grep") <= 0 Then Exit Do 'So unless there's "grep", it won't continue. End If End If Loop




Reply With Quote