Попробовать так, может быть?
var st = System.Diagnostics.Stopwatch.StartNew();
var email = "
[email protected]";
var username = email.Split('@')[0];
var domain = email.Split('@')[1];
var maxDots = 4;
string path = @"C:\file.txt";
using (StreamWriter sw = new StreamWriter(path...