03.03.2013 Views

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.3 ED Operation <strong>CP</strong>/M 3 User's Guide<br />

6.3 ED Operation<br />

With ED, you change portions of a file that pass through a memory buffer. When<br />

you start ED with one of the preceding commands, this memory buffer is empty. At<br />

your command, ED reads segments of the source file, for example MYFILE.TEX,<br />

into the memory buffer for you to edit. If the file is new, you must insert text into<br />

the file before you can edit. During the edit, ED writes the edited text onto a temporary<br />

work file, MYFILE.$$$.<br />

When you end the edit, ED writes the memory buffer contents to the temporary<br />

file, followed by any remaining text in the source file. ED then changes the name of<br />

the source file from MYFILE.TEX to MYFILE.BAK, so you can reclaim this original<br />

material from the back-up file if necessary. ED then renames the temporary file,<br />

MYFILE.$$$, to MYFILE.TEX, the new edited file. The following figure illustrates<br />

the relationship between the source file, the temporary work file, and the new file.<br />

Note: when you invoke ED with two filespecs, an input file and an output file, ED<br />

does not rename the input file to type BAK; therefore, the input file can be Read-<br />

Only or on a write-protected disk if the output file is written to another disk.<br />

6-3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!