3
Answers

Writing to a binary file

alobiuc

alobiuc

19y
5.7k
1
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)