.write

This is an embedded simulation statement that directs the simulator to write data to a file.

The syntax is:

.write   filename,   arg1,   arg2, ...   argn
Where 'filename' is specified as a string and the arguments arg1 to argn are written to the file using the same rules used by the .print statement.