Quote Originally Posted by Hack
Why not just do
VB Code:
  1. Do While Not EOF(1)
  2.     Line Input #1, strReadLine
  3.  
  4.     If InStr(1, strReadLine, "S ") Then
  5.         If InStr(1, strReadLine, "grep") Then
  6.             'Go to next Line
  7.              Loop
  8.         End If
  9.  
  10.         If InStr(1, strReadLine, "/") Then
  11.             'Do some events
  12.         End If
  13.     End If
  14. Loop
I think that will only work in C. Are you telling that this code compiles? (I've not tested).