Text File [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Text File
Purpose
Reads in a specified file.
Default Syntax
t
Description
This command reads in a specified existing file or enables you to edit a
new file.
When you execute the command, HP EDIT responds appropriately depending on
whether you saved all changes made to the current file. If you saved the
current file, HP EDIT prompts you for a file name. If you did not save
the current file, HP EDIT asks whether you want to discard your editing
changes. This action prevents you from inadvertently concluding the
session before you have saved text changes.
If you respond that you do not want to discard your editing changes, HP
EDIT cancels the command and returns the cursor to its former position
before the command was executed. If you indicate that you want to
discard your editing changes, HP EDIT prompts you for a file name and
does not save text changes made since the last time you executed the Keep
Text command.
[REV BEG]
You can also text files into two windows on the same screen and edit them
simultaneously. For more information, see Open Window command
information.[REV END]
Procedure
To read in an existing file:
1. Execute the Keep Text (k) command, if necessary, to save the
changes made in the current editing session.
2. Press the t key, or press the File Commands function key, followed
by the Text File function key. HP EDIT displays the prompt File:
on the message line.
3. Type the desired file name and press Return. HP EDIT reads in the
requested file name.
To start editing a new file:
1. Execute the Keep Text (k) command, if necessary, to save the
changes made in the current editing session.
2. Press the t key, or press the File Commands function key, followed
by the Text File function key. HP EDIT displays the prompt File:
on the message line.
3. Type a currently non-existent file name and press Return. HP EDIT
displays Create new filename X (y/n)? on the message line, where
X represents the file name you specified.
4. Reply yes (y) to the prompt or press Return. HP EDIT clears the
text buffer, enabling you to begin editing in the new file. Note
that the new file is not saved until you subsequently execute the
Keep Text command.
Example
To read in the file named FILE2 from the current file named FILE1:
1. Press the t key. HP EDIT displays the prompt File: on the
message line as shown:
2. Type the file named file2 beginning at the cursor location as
shown:
3. Press Return. HP EDIT reads in the new file and changes the
message line as shown:
Related Commands
Keep Text
MPE/iX 5.0 Documentation