string[] lines = { "First line", "Second line", "Third line" };
System.IO.File.WriteAllLines(@"C:UsersPublicTestFolderWriteLines.txt", lines);
lines = { "Fourth line", "Fith line" };
System.IO.File.AppendAllLines(@"C:UsersPublicTestFolderWriteLines.txt", lines);