日期:2014-05-18 浏览次数:20739 次
String str1 = this.textBox接收.Text; String str2 = this.richTextBox1.Text; String bFilePath = "C:\\" + DateTime.Now.ToString("yyyyMMddhhmmss") + ".log"; FileStream fsMyfile = new FileStream(bFilePath, FileMode.Append, FileAccess.Write); StreamWriter swMyfile = new StreamWriter(fsMyfile); swMyfile.WriteLine(str1, "错误帧:" + str2,"错误率:"+this.label4.Text); swMyfile.Flush(); swMyfile.Close(); fsMyfile.Close(); textBox接收.Clear(); richTextBox1.Clear();