HP Pascal/iX Reference Manual (31502-90022)

10- 13
prompt is normally used when directing output to a terminal. prompt
causes the cursor to remain on the same line after output to the screen
is complete. The user may then respond with input on the same line.
The expression parameter,
e
, behaves exactly like the equivalent
parameters in the procedure write.
Example
prompt(file_var)
prompt(file_var,exp)
prompt(file_var,exp1,...,expn)
prompt(exp)
prompt(exp1,...,expn)
prompt
put
Usage
put
(f)
put
Parameter
f
A file variable opened in the output or direct access state. The
system uses the standard file output if
f
is omitted.
Description
The procedure put
(f)
assigns the value of the buffer variable
f^
to the
current component and advances the current position. Following the call,
f
^ is undefined.
It is an error if
f
is open in the input state.
Example
put(file_var)
Illustration
Suppose examp_file is a file of integer with a single component opened in
the output state by append. Furthermore, 9 has been assigned to the
buffer variable examp_file^. To place this value in the second
component, put is called.