The easiest way (I think) is to create a string and use the System.IO.File.WriteAllText method:

Code:
string contents = "";
foreach(string line in lines)
   contents += line + Environment.Newline;
File.WriteAllText(path, s, Encoding.Default);