SET ALTERNATE example
This example uses the SET ALTERNATE commands to write text to the screen and an ASCII file:
set alternate to Rose
// Open Rose.txt for text output
? "Opening alternate file" // to screen only
set alternate on
// ?,?? commands now go to Rose.txt
? "A rose "
set alternate off // Stop storing to Rose.txt.
?? "tended carefully in your garden "
set alternate on // Add to Rose.txt.
?? "is a rose "
?? "is a rose "
? "You will be proud of"
close alternate // Close Rose.txt
// Rose.txt contains:
// A rose is a rose is a rose
// You will be proud of