to save a file, u just need to get the data from the txt area and put it in a file. which option u chose to do that with is up to you (file choosers, predefined file names, etc...).

as for printing, i dunno. look it up online as u have been for quite some time now.