title: C# string.Contains using variable
body: <pre><code>string[] pullspec = File.ReadAllLines(@"C:\fixedlist.txt");
  foreach (string ps in pullspec)
  {
      string pslower = ps.ToLower();
      string[] pslowersplit = pslower.Split('|');
      var keywords = File.ReadAllLines(@"C:\crawl\keywords.txt");
      if (pslower.Contains("|"))
      {
          if (pslower.Contains(keywords))
          {
              File.AppendAllText(@"C:\" + keyword + ".txt", pslowersplit[1] + "|" + pslowersplit[0] + "\n");
          }
      }
  }
  </code></pre>
  
  <p>This doesn't compile because of <code>pslower.Contains(keywords)</code> but I'm not trying to do 100 foreach loops.</p>
  
  <p>Does anybody have any suggestions?</p>