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?
Mahesh ChandPosted Jul 5, 2005, 6:15 AM
alobiucPosted Nov 10, 2004, 2:30 AM
MykoninePosted Nov 9, 2004, 7:55 PM