If you just need to save the values there are variant based tools for this included in the OpenG toolkit, you can find it on www.openg.org.
If you want to save properties as well have a look at the Property Saver Toolkit at: http://www.kshif.com/lv/index.html