title: VB - If StreamReader reads line containing ("string1") but missing ("string2")
body: <p><strong>EDIT:</strong> <em>How would I go about retrieving the filename of the files that meet said conditions?</em></p>
  
  <p>How I can check if a string contains "value1" but doesn't have "value2"? I tried this:</p>
  
  <pre><code>While Not sr.EndOfStream
      Dim sLine As String = sr.ReadLine
      If sLine.Contains("value1") Then
          If Not sLine.Contains("value2") Then
              sw.WriteLine("write name of file that meets conditions to txt file")
  End While
  </code></pre>
  
  <p>Not sure how to go about searching for the missing value.</p>