Save text

I have a textfield which adds 1 everytime the pointer touches the frame. I want save this text when unload. How to save this text ?