txt随机生成器,用于随机生成多个txt文本文件的小程序,可以自定义生成数量。

intNum=0;
privatevoidForm1_Load(objectsender,EventArgse)
{
privatevoidbutton1_Click(objectsender,EventArgse)
{
Num=Convert.ToInt32(numUd.Value);
Threadt=newThread(CreateTxt);
t.Start();
}
}
}
namespace随机生成txt
{
publicpartialclassFrmMain:Form
{
publicFrmMain()
{
InitializeComponent();
}
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Text;
usingSystem.Windows.Forms;
usingSystem.IO;
usingSystem.Threading;
voidCreateTxt()
{
for(inti=0;i<Num;i++)
{
StreamWritersw=newStreamWriter(i.ToString()+".txt");
sw.WriteLine(i.ToString()+""+DateTime.Now.ToString());
sw.Close();
}
MessageBox.Show("生成完毕!");
}马上金融来钱花贴吧
}
展开

能领红包的网页游戏
商海 赚钱游戏
如何用毒赚钱
手机赚钱良心软件
网上开户佣金
莱茨狗真的可以赚钱吗
趣头条怎么赚钱快
柒鑫棋牌作弊器怎么样
167棋牌提现多久到账
兼职的好句子
免费赚钱的APP
国际棋牌电玩游戏中心
代理共享充电宝能赚钱吗
赚钱项目 快速产地
赚钱抢红包app能提现吗
在家领小孩怎么赚钱
朋友说激活手机卡能赚钱
药剂科兼职医药代表
吉祥棋牌能建几个号
消除小镇红包提现