日期:2014-05-17 浏览次数:20737 次
foreach (FileInfo NextFile in TheFolder.GetFiles())
{
this.listBox1.Items.Add(NextFile.Name);
string tempStr = File.ReadAllText(NextFile.FullName, Encoding.GetEncoding("GB2312"));//读取txt内容
MessageBox.Show(tempStr);
this.richTextBox1.Text = tempStr;
}