Writing to a binary file
How can I write a struct-type variable to a binary file?
e.g.:
struct mystruct
{
int x,y;
string mystring;
public mystruct(int n)
{
x=y=n;
mystring="Hi";
}
}
...
mystruct m = new mystruct(1);
Ok, now I wanna write m to a file. How?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

MykonineRank #2,671 · 521 pointsPosted Nov 9, 2004, 2:55 PM EST
alobiuc168 pointsPosted Nov 9, 2004, 9:30 PM EST
Mahesh ChandRank #1 · 393.4K pointsPosted Jul 5, 2005, 2:15 AM EDT