private void SaveB_Click(object sender, System.EventArgs e)
{
try
{
string[]FormData=GetData();
string file="CommLog\\"+DateTime.Now.ToLongDateString()+".txt";
Stream s=new FileStream(file, FileMode.Append, FileAccess.Write);
BinaryWriter BF=new BinaryWriter(s);
BF.Write(FormData[0]);
BF.Write(FormData[1]);
/*StreamWriter s=new StreamWriter(file,true);
s.Write(FormData[i]);*/
s.Close();
ClearTBs();
}
catch{}
}
private string[]GetData()
{
string[]data=new string[20];
data[0]+=this.richTextBox1.Text;
data[1]+=this.richTextBox2.Text;
return data;
}