title: How to save a richtextbox data to a textfile without using the dialog?
body: <p>I'm writing a program which will document how my day has been (very similar to a diary). I have managed to pretty much get the program to do everything i want at this stage apart from one thing. This is to automatically save the richtextbox data to a .txt file with the date and time of creation. I can get it save the file but it saves it in The folder TomJ as Record My Life files.txt if the folder "Record My Life files" hasn't been created, What i would like is for it to be saved in the folder Record My Life files as (date + time).txt.</p>
  
  <p>To sum up my question: How do i edit my code to automatically save the reviewtxtbox in the Folder Record My Life files, with the name date + time?</p>
  
  <p>I am a novice, i've only spent about 6 hours using C# but i've done some other programming stuff before, so i would be greeatful if you could explain your answers simply. :) 
  Thanks
  The code i need to edit is as follows:</p>
  
  <pre><code>//creat directory for folders
  if (!Directory.Exists(@"C:\Users\TomJ\Record My Life files")) 
  {
  }
  else
  {
      Directory.CreateDirectory(@"C:\Users\TomJ\Record My Life files");
      MessageBox.Show("Directory Created for Diary Entries");
  }
  
  private void savebutton_Click_1(object sender, EventArgs e)
  {
      try
      {
          string date = datepckr.Text;
          string time = timetxtbox.Text;
          savefile.FileName = date + time;
          savefile.DefaultExt = "*.txt*";
          savefile.Filter = "TEXT Files|*.txt";
          reviewtxtbox.SaveFile(@"C:\Users\TomJ\Record My Life files\", RichTextBoxStreamType.PlainText);
          MessageBox.Show("Your day has been saved!");
      }
      catch(Exception etc)
      {
          MessageBox.Show("An error Ocurred: " + etc.Message);
      }
  }
  </code></pre>