Basically, I have 5 textboxs where I enter information to be serialized to a text file. I wan't to display all the contents from the text file into a multiline textbox, this is where my problem occurs.
I can only read the first 'record' of the text file, nothing else gets displayed in the textbox. The only way im able to get everything is by creating an endless loop and catching a serialization exception when it gets to the end, which breaks the loop.
Basically, What is the proper way of doing this?
BinaryFormatter
FileStream file;
file = new FileStream(openFile.FileName, FileMode.Open, FileAccess.Read);
try
{
txtDisplay.Text +=
i--;
}
This can't be the best way...