Save text file to hard drive

I want the user to input text into a dynamic text box and be able to save it the his hard drive.