Is there any way to write and load an object to a file besides writing and reading the individual fields by just writing out the contents of the memory it occupies?Any examples would also be helpful.
Thanks.
Thanks.
mynew:Ttest = new Ttest field blah, blah blah end type. local Myptr:byte ptr = byte ptr(mynew) myfile:tStream=writefile("output.dat") for count = 0 to sizeof(mynew) writebyte(myfile,myptr[count] next closefile myfile.
Local mybank:TBank=CreateStaticBank(mynew,SizeOf(mynew)) Local myfile:TStream=WriteStream("decs1.txt") WriteBank(mybank,myfile,0,SizeOf(mynews)) CloseFile myfile