Hi, i've been reading the other thread on serializing and use the following code to serialize the data in a textbox.
private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{
BinaryFormatter binaryFormat = new BinaryFormatter();
Stream fstream = new FileStream("data.dat",
FileMode.Create, FileAccess.Write, FileShare.None);
binaryFormat.Serialize(fstream, (textBox1.Text));
fstream.Close();
}
This successfully creates a data.dat file in the app location, my question is how can i load that file and display the info back in the textbox?