|
|
Saving/Loading Structs
#111471
02/09/07 14:49
02/09/07 14:49
|
Joined: Jul 2006
Posts: 783 London, UK
sheefo
OP
User
|
OP
User
Joined: Jul 2006
Posts: 783
London, UK
|
Another question about structs  Is it possible to save/load a struct to/from a file in Lite-C? I just want to dump a struct in a file and load it later on, like you can do in C++. I don't know how because GameDev is down, so if it is possible can someone show me code...?  I would really appreciate it.
|
|
|
Re: Saving/Loading Structs
[Re: sheefo]
#111475
02/10/07 16:23
02/10/07 16:23
|
Joined: Sep 2003
Posts: 9,859
FBL
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 9,859
|
Pointers most likely will have to be reinitialized after loading, as the memory areas they point to might be different. Maybe you can put all structs into a buffer first? http://manual.conitec.net/aadd_buffer.htmBut I think it's only used for external files... no idea...
|
|
|
|