How to save a textfield text to an external text file

I have an application that combines words introduced by the user to create new words. I would like to be able to save the resulting combinations into an external txt file. Do any of you know how this could be done with actionscript?
:jail: