subroutine output(text) subroutine txtopen(handle,name,status,iostat) subroutine txtread(handle,text,length,iostat) subroutine txtwrite(handle,text,length,iostat) subroutine txtclose(handle)Output prints text (a character string) on the users terminal.
Txtopen opens a text file (passing back a handle) with name name. Status can be either 'old' or 'new'. When opening a new file, any old files which exist with the same name may be deleted. Txtread and txtwrite read and write a character string, text, of length characters. Length is passed back from txtread, whereas it is passed into txtwrite. It may be zero in either case. All these routines return an i/o status variable, iostat.
Txtclose closes the file.