How can I define the size of an array in a struct?

Mar 18 2004 3:17 AM
i can implement struct in c++ like this: struct test{ char name[8]; int age; float salary; ... } t; then i read struct in file like this: CFile f1,f2; f1.Read(&t,sizeof(t)); or f2.Write(&t,sizeof(t)); but how can i implement the procedure in c#?

Answers (3)