I have my List<Employee> object, I want to store this object to file stream. (Which would be not easily readable by human)
Also, I want to retrieve List<Employee> from stream to display list of employee on UI (I’m using .NET Windows Forms Application)
I also want to update specific record in file steam.
Could anybody please let me know that I would I do this?
If serialization is the only way to do this, please let me know how do I use it with regards to updating specific record information.
Thanks in advance.
Instead of going with Serialization, another option would be to go with a NoSql solution such as db4o or any of the ones listed in this question.
Here is a blog post that talks about how to use db4o. (based on mvc but could be used in a winform application as well.
This would allow you to leverage the power of linq to query your 5000 records easily and update the object without much trouble.