alobiuc

alobiuc

  • NA
  • 197
  • 0

Writing to a binary file

Nov 9 2004 3:47 PM
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)