title: How to get last file that not contain specific string
body: <p>I know how to get the last file, this the code:</p>
  
  <pre><code>string pattern = "Log*.xml";
  string directory = set. Path;
  var dirInfo = new DirectoryInfo(directory);
  var file = (from f in dirInfo.GetFiles(pattern) orderby f.LastWriteTime descending select f).First();
  </code></pre>
  
  <p>My question is: How can I get the last file that <strong>not</strong> contain specific string? or in another words, how can I get the last file that not contain "This is temporally file" string?</p>
  
  <p>Thank you!</p>