Previous: REPEATING DATA, Up: Data Input and Output



6.16 WRITE

     WRITE
             OUTFILE='filename'
             RECORDS=n_lines
             {NOTABLE,TABLE}
             /[line_no] arg...
     
     arg takes one of the following forms:
             'string' [start-end]
             var_list start-end [type_spec]
             var_list (fortran_spec)
             var_list *

WRITE writes text or binary data to an output file.

See PRINT, for more information on syntax and usage. The main difference between PRINT and WRITE is that WRITE uses write formats by default, where PRINT uses print formats.

The sole additional difference is that if WRITE is used to send output to a binary file, carriage control characters will not be output. See FILE HANDLE, for information on how to declare a file as binary.