title: StreamWriter.Write doesn't write to file; no exception thrown
body: <p>My code in C# (asp.net MVC)</p>
  
  <pre><code>StreamWriter tw = new StreamWriter("C:\\mycode\\myapp\\logs\\log.txt");
  
  // write a line of text to the file
  tw.Write("test");
  </code></pre>
  
  <p>The file is created but is empty. No exception is thrown. I have never seen this before and I am stuck here; I just need to write some debugging output. </p>
  
  <p>Please advise.</p>