3
Reply

Writing to a binary file

alobiuc

alobiuc

Nov 9 2004 3:47 PM
5.7k
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?

Answers (3)