title: Creating a new .txt file with date in front, C#
body: <p>I am trying to get the following:  [today's date]___[textfilename].txt from the following code:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.IO;
  
  namespace ConsoleApplication29
  {
      class Program
      {
          static void Main(string[] args)
          {
              WriteToFile();
  
          }
  
          static void WriteToFile()
          {
  
              StreamWriter sw;
              sw = File.CreateText("c:\\testtext.txt");
              sw.WriteLine("this is just a test");
              sw.Close();
              Console.WriteLine("File created successfully");
  
  
  
          }
      }
  }
  </code></pre>
  
  <p>I tried putting in <code>DateTime.Now.ToString()</code> but i cannot combine the strings. </p>
  
  <p>Can anybody help me?  I want the date in FRONT of the title of the new text file I am creating.</p>