The write command is used to save simulation data in rawfile format.
write [file [expr ...]]The command writes out the exprs to file. First vectors are grouped together by plots, and written out as such. For example, if the expression list contained three vectors from one plot and two from another, then two plots will be written, one with three vectors and one with two. Additionally, if the scale for a vector isn't present, it is automatically written out as well. The default format is ascii, but this can be changed with the filetype variable, or the SPICE_ASCIIRAWFILE environment variable. The default filename is rawspice.raw, or the argument to the -r flag on the WRspice command line, if there was one, and the default expression list is ``all''. If the appendwrite variable is set, the data will be appended to an existing file.