print is the most important function in the Save function. print takes a variable number of argument's, and concatenates all its arguments into one string. This string is then either saved in the dotfile and/or displayed in the dialog box.
If the first argument to print is -file then the next argument must be a token given in the setup(dotfile) variable. The output is then directed to the file specified in the setup(dotfile) variable.