User guide

22-5
Itiseasytoforgettoturnthewindowonagain.Usetheendstatementtoterminateyour
programs;endwillautomaticallyperformscreen onandoutput off.
Thefollowingcommandscanbeusedtocontrolprintingtotheauxiliaryoutput:
format
Specifyformatforprintingamatrix.
output
Open,close,renameauxiliaryoutputfileordevice.
outwidth
Setauxiliaryoutputwidth.
printfm
Formattedmatrixprint.
print
Printmatrixorstring.
screen
Turnprintingtothewindowonandoff.
Thisexampleillustratesprintingamatrixtoafile:
format /rd 8,2;
outwidth 132;
output file = myfile.asc reset;
screen off;
print x;
output off;
screen on;
Thenumbersinthematrixxwillbeprintedwithafieldwidthof8spacespernumber,
andwith2placesbeyondthedecimalpoint.TheresultingfilewillbeanASCIIdata
file.Itwillhave132columnlinesmaximum.
Amoreextendedexamplefollows.ThisprogramwillwritethecontentsoftheGAUSS
filemydata.datintoanASCIIfilecalledmydata.asc.Ifthereisanexistingfile
bythenameofmydata.asc,itwillbeoverwritten:
output file = mydata.asc reset;
screen off;
format /rd 1,8;
File I/O