title: .NET FileInfo.LastWriteTime & FileInfo.LastAccessTime are wrong
body: <p>When I call <code>FileInfo(path).LastAccessTime</code> or <code>FileInfo(path).LastWriteTime</code> on a file that is in the process of being written it returns the time that the file was created, not the last time it was written to (ie. now). </p>
  
  <p>Is there a way to get this information?</p>
  
  <p><b>Edit: To all the responses so far. I hadn't tried <code>Refresh()</code> but that does not do it either. I am returned the time that the file was started to be written to. The same goes for the static method, and creating a new instance of <code>FileInfo</code>.</B></p>
  
  <p>Codymanix might have the answer, but I'm not running Windows Server (using Windows 7), and I don't know where the setting is to test.</p>
  
  <p><b>Edit 2:</b> Nobody finds it interesting that this function doesn't seem to work?</p>