C# write to text file


Where lines is List<string>:

using System.IO;

System.IO.File.WriteAllLines(directory + "output.txt", lines);