title: Remove all previous text before writing
body: <p>I am writing a text file and each time i write i want to <strong>clear</strong> the text file. </p>
  
  <pre><code>try
  {
      string fileName = "Profile//" + comboboxSelectProfile.SelectedItem.ToString() + ".txt";
      using (StreamWriter sw = new StreamWriter(("Default//DefaultProfile.txt").ToString(), true))
      {
          sw.WriteLine(fileName);
          MessageBox.Show("Default is set!");
      }
      DefaultFileName = "Default//DefaultProfile.txt";
  }
  catch 
  { 
  }
  </code></pre>
  
  <p>How do I do this? I want to remove all previous content from <strong>DefaultProfile.txt</strong>. </p>
  
  <p>I actually have to know the method or way (just a name could be) to remove all content from the text file.</p>