我将获得没有任何分隔的电子邮件列表。 每行我需要1封电子邮件,该怎么办?
public static string RandomStringGenerator()
{
String randomstring = Path.GetRandomFileName();
randomstring = randomstring.Replace(".", string.Empty);
return randomstring;
}
static void Main(string[] args)
{
var path = @"C:\Users\Jakov\Desktop\test.txt";
var mail = "@gmail.com";
StreamWriter sr = new StreamWriter(path);
for (int i = 0; i < 1000; i++)
{
sr.Write(RandomStringGenerator() + mail);
}
sr.Close();
}