how to store text

is it possible to make a button that would grab text and store it somewhere somehow. Then have another button recall the text. This would be so users can store their passwords. See attached.

On OS X you should store things in the keychain and use the correct OS methods to ask for permission to use the keychain

But - yes

I could grab the text fields and copy to the clipboard and use Applescript to make a text doc and save the info there, then use another applescript to read each line and put that info in the textbox, I was hoping XOJO could do it and that make it a little easier.

Ah no dont do that
On OS X use http://documentation.xojo.com/index.php/KeyChain
Windows & linux would require other means

And no matter what you do, you do not want to store user passwords themselves in a file some place. That’s a significant security risk.

Someone gets ahold of that file and they have that person’s information. At the very least, you would want to apply some encryption methodologies. Norman’s 100% right that in OS X you use the KeyChain. That’s what it’s for…

http://documentation.xojo.com/index.php/KeyChain shows how to retrieve the password for an app.
But how, for instance, to get the passwords of my email accounts?