Saves the contents of a RichTextEdit control in a file. You can specify either rich-text format (RTF) or ASCII text format for the file.
RichTextEdit controls
rtename.SaveDocument ( filename {, filetype } )
Integer. Returns 1 if it succeeds and -1 if an error occurs.