C# 批量生成邮箱地址代码

如图,是我生成好的5万条邮箱数据,

其实,网上有大量批量生成邮箱的软件,多种多样的生成格式,各种设置,各种组合,

我不需要那么强大,只需要生成不重复的邮箱地址即可,所以,我懒得从网上下载了,

反正就几行代码,附上:

private void button2_Click(object sender, EventArgs e)
        {
            string path = AppDomain.CurrentDomain.BaseDirectory + @"" + "mail.txt";
            for (int i = 0; i < 50000; i++)
            {
                lock (lock_txt)
                {
                    File.AppendAllText(path, i + "@qq.com
", Encoding.UTF8);
                }
            }
            MessageBox.Show("ok");
        }
原文地址:https://www.cnblogs.com/testsec/p/6095972.html