this.NewLogB.Enabled=true; NLClosed=0;
string file="CommLog\\"+DateTime.Now.ToLongDateString()+".txt";
this.richTextBox1.Clear();
//StreamReader SR=new StreamReader(file);
//this.richTextBox1.Text+=SR.ReadToEnd();
string[]holdIt=new string[20];
FileStream FS=new FileStream(file,FileMode.Open);
BinaryFormatter BF=new BinaryFormatter();
(this is the problem)::::::
holdIt=(string[])BF.Deserialize(FS);
FS.Close();
richTextBox2.Clear();
richTextBox1.Text+=holdIt[0];
richTextBox2.Text+=holdIt[1];
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim sa() As String = {"Extreme", "Visual", "Basic", "Forum"}
Dim ser As New Xml.Serialization.XmlSerializer(GetType(String()))
Dim fs As New IO.FileStream( _
Application.StartupPath & "\beh.txt", IO.FileMode.OpenOrCreate)
Dim tw As New IO.StreamWriter(fs)
Dim tr As New IO.StreamReader(fs)
ser.Serialize(tw, sa)
Dim dum As String, ret() As String, out As String
ret = ser.Deserialize(tr)
For Each dum In ret
out &= dum & " "
Next
MessageBox.Show(out.Trim)
End Sub