Simulation Command Reference : Rational Statemate Actions : WRITE

WRITE

The WRITE statement is used to output the simulation data to either the display or a file.

Syntax:

write ( [file_variable], exp1 [, exp2 . . . ])

 
where file_variable, if present, is the name of the output file. If absent, output of exp1 is sent to the display.

The output may be a combination of printable strings and numeric values.

Example:
write ( ‘The data value is’, d1,‘\n’)
write (file2, ax, by, ‘\n’)