title: StreamWriter truncating text while writing to a text file
body: <p>I have a huge content in a string variable and I want to write that content to a text file using stream writer. But the stream writer is truncating the text and not writing the whole content to file. Why?</p>
  <pre><code>using (StreamWriter sw = new StreamWriter(completeFilePath))
  {
      sw.Write(txt);
  }
  </code></pre>