Direct (alles of niets)
using System.IO;
...
File.WriteAllText(@"c:\temp\test.txt", "bla bla bla);
File.WriteAllLines(@"c:\temp\test.txt", new [] {"regel 1", "regel 2"});
Streams - StreamWriter (controle)
using System.IO;
...
var sw = new StreamWriter("c:\temp\test.txt")
sw.WriteLine("Bla bla");
sw.Write("Bla bla\r\n");
sw.Write($"Bla bla{Environment.NewLine}");