How can one save an Object, in its current state, to a file? So that it can immediately be read and restored with all its variables.
There is a good tutorial here. Keep in mind that you have to have RTTI (run time type information) to save an object at run-time using this approach, so it will only capture published properties of a class.