I received some data (many times) which are encapsulated inside a struct. what I need to do is write them to a file (binary) to restore the data. how will you do it?
I received some data (many times) which are encapsulated inside a struct . what
Share
Implement
ISerializable(greater customization) or mark with the[Serializable]attribute (easier to use). Then use aBinaryFormatterto serialize to a file.