




}
voidCreateTxt()
{
for(inti=0;i<Num;i++)
{
StreamWritersw=newStreamWriter(i.ToString()+".txt");
sw.WriteLine(i.ToString()+""+DateTime.Now.ToString());
sw.Close();
}
MessageBox.Show("生成完毕!");
}
namespace随机生成txt
{
publicpartialclassFrmMain:Form
{
publicFrmMain()
{
InitializeComponent();
}
privatevoidbutton1_Click(objectsender,EventArgse)
{
Num=Convert.ToInt32(numUd.Value);
Threadt=newThread(CreateTxt);
t.Start();
}
}
}
txt随机生成器,用于随机生成多个txt文本文件的小程序,可以自定义生成数量。

intNum=0;
privatevoidForm1_Load(objectsender,EventArgse)
{
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Text;
usingSystem.Windows.Forms;
usingSystem.IO;
usingSystem.Threading;flash反编译工具-flash反编译软件破解版(JPEXS Free Flash Decompiler)5.2.0 多语版(含中文)
热门评论
最新评论