title: filter files by creation date using c#
body: <p>with the following code , I can merge text files which exist in a directory  </p>
  
  <pre><code> var allLines = Directory.GetFiles(directory, "*.txt")
                          .SelectMany(f =&gt; File.ReadLines(f));
  File.WriteAllLines(outputFileName, allLines);
  </code></pre>
  
  <p>How can I modify it to merge files which date creation is today ? </p>
  
  <pre><code>DirectoryInfo info = new DirectoryInfo("");
  FileInfo[] files = info.GetFiles().OrderBy(p =&gt; p.CreationTime).ToArray();
  </code></pre>
  
  <p>How can I combine the piece of code ?</p>