I’ve made a few custom classes and wrote some code to create objects at runtime. How can i save these objects to a file, and load them the next time i run the program?
Basically you need to save all the relevant parameters onto your hard drive / server, like those you use to create them and then position / rotation / …
Now, let’s see how. You should take a look here or there, about xml serialization. It means putting several parts of information into a single chunck of data, here in xml. You just need to be able to serialize your information, then deserialize it.