System information

where filename is the primary filename of a source file on the disk with an assumed filetype of
LIB. ED reads the specified file, and places the characters into the memory buffer after CP, in a
manner similar to the I command. Thus, if the command
RMACRO<cr>
is issued by the operator, ED reads from the file MACRO.LIB until the end-of-file and
automatically inserts the characters into the memory buffer.
ED also includes a block move facility implemented through the X (Transfer) command. The
form
nX
transfers the next n lines from the current line to a temporary file called
X$$$$$$.LIB
which is active only during the editing process. You can reposition the current line reference to
any portion of the source file and transfer lines to the temporary file. The transferred lines
accumulate one after another in this file and can be retrieved by simply typing
R
which is the trivial case of the library read command. In this case, the entire transferred set of
lines is read into the memory buffer. Note that the X command does not remove the transferred
lines from the memory buffer, although a K command can be used directly after the X, and the R
command does not empty the transferred LIB file. That is, given that a set of lines has been
transferred with the X command, they can be reread any number of times back into the source
file. The command
0X
is provided to empty the transferred line file.
Note that upon normal completion of the ED program through Q or E, the temporary LIB file is
removed. If ED is aborted with a CTRL-C, the LIB file will exist if lines have been transferred,
but will generally be empty (a subsequent ED invocation will erase the temporary file).
2.1 Introduction to ED CP/M Operating System Manual
2-16