How can I define the size of an array in a struct?
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#?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

kovanRank #1,453 · 1.1K reputationPosted Mar 18, 2004, 5:29 AM EST
tang_eric13 reputationPosted Mar 18, 2004, 5:09 PM EST
kovanRank #1,453 · 1.1K reputationPosted Mar 19, 2004, 4:22 AM EST