0
Reply

Reading Objects From a File?

Dave

Dave

17 years ago
1.3k
I have an object in my C# program that I want to write to disk when the user closes the program and read from the disk when the user starts the program. I am able to write the object to a file using a StreamWriter, but I apparently cannot read the object back in with StreamReader as I thought I would have been able to. Can someone help me figure out how to read the object back in, or perhaps give me an idea for another way to save this object in between program sessions? Thanks.