Dave

Dave

  • NA
  • 1
  • 0

Reading Objects From a File?

Feb 20 2007 11:14 AM
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.