Saving a variable from flash

hey, i need to save a variable from a flash file to the local harddrive, whats the best way to go about this? would it be xml?