title: Argument 2: cannot convert from System.IO.FileInfo to 'string'
body: <p>I am getting an error when I try to open up the most recently made text file in a certain repository.</p>
  
  <blockquote>
    <p>"Argument 2: cannot convert from System.IO.FileInfo to 'string'"</p>
  </blockquote>
  
  <p>The error is underlined under "newestFile".</p>
  
  <pre><code>var directory = new DirectoryInfo(Program.resultsFolder);
  var newestFile = directory.GetFiles().OrderByDescending(f =&gt; f.LastWriteTime).First();
  Process.Start("notepad.exe", newestFile);
  </code></pre>
  
  <p>Anyone have any ideas on why this is happening and how I can fix it?</p>