Ho Ngoc Hung
Posts: 4
Nickname: hongochung
Registered: Mar, 2004
|
|
Need help with read and Birnay File !!!
|
Posted: Mar 15, 2004 2:04 AM
|
|
|
Advertisement
|
I have this Class public class MyClass{ public string User = "", Task = ""; DateTime dtTime = DateTime.Now; }
I have some objects like: MyClass cl1 = new MyClass(); cl1.User = "Mr A"; cl1.Task = "Paint floor"; cl1.dtTime = DateTime.Now;
MyClass cl2 = new MyClass(); cl2.User = "Mr B"; cl2.Task = "Driving"; cl2.dtTime = DateTime.Now.AddDay(-1);
Can anyone show me a way to write two above objects (cl1, cl2) to a binary file, and then read them from that file to two new MyClass Objects (c1, c2)
thanks
|
|