title: File size doesn't change on Windows Server 2008
body: <p>I have noticed strange behavior when continuosly write to file on Windows Server 2008 compared to Windows XP. </p>
  
  <p>I execute from several threads something like that:</p>
  
  <pre><code>using (var fi = File.Open(...))
  {
     using (var fw = new StreamWriter(fi)) 
     {
         while program-is-running 
         {
            fw.WriteLine(some-data);
            fw.Flush();
          }
      }
  }            
  </code></pre>
  
  <p>When I observe file in Total Commander and Windows Explorer I see that file size keeps constant. I can walk into directory where file located, then walk out from directory, then walk into once again - file size is constant (in Total Commander as well as in Windows Explorer) until I manually refresh directory content in Windows Explorer by <kbd>F5</kbd></p>
  
  <p>When I run the same program in Windows XP - Total Commander and Windows Explorer continuosly show that file size is increasing. </p>
  
  <p>I wonder what is the problem. Is it NTFS behaviour, software settings or something else? </p>
  
  <p>Thank you in advance! </p>