The WRITE statement is used to output the simulation data to either the display or a file.
write ( [file_variable], exp1 [, exp2 . . . ])
wherefile_variable
, if present, is the name of the output file. If absent, output ofexp1
is sent to the display.The output may be a combination of printable strings and numeric values.