DateTime.Now. String.Format(), .
, Path.Combine().
, using(), StreamWriter, ...
string myFileName = String.Format("{0}__{1}", DateTime.Now.ToString("yyyyMMddhhnnss"), "MyFileName");
strign myFullPath = Path.Combine("C:\\Documents and Settings\\bob.jones\\Desktop", myFileName)
using (StreamWriter sw = File.CreateText(myFullPath))
{
sw.WriteLine("this is just a test");
}
Console.WriteLine("File created successfully");
: "C:\Documents and Settings\bob.jones\Desktop"