The WRITE (abbreviated WR) command creates a file from a specified range of lines. Format: WRITE file-spec [range] [/SEQUENCE[:init:incr]] When you specify a range, the text contained in that range becomes the file. When you do not specify a range, the contents of the current text buffer becomes the new file. The cursor position is not affected by the WRITE command.