HP Pascal/iX Reference Manual (31502-90022)

10- 3
Table 10-1. File Procedures and Functions (cont.)------------------------------
-----------------------------------------------------------------
| | | |
| position | Returns integer indicating the current component of | any file except a |
| | a non-text file. | textfile |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Procedure or | Action | Permissible Files |
| Function | | |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| prompt | A form of write which assures textfile buffers have | output textfiles |
| | been written to the device. No line marker is | |
| | written. | |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| put | Assigns the value of the buffer variable to the | output or direct |
| | current component and advances the current | access files |
| | position. | |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| read | Copies current component into specified variable | input or direct |
| | parameter and advances current position. | access files |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| readdir | Moves current position of a direct access file to | direct access |
| | designated component and then performs read. | files |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| readln | Performs read on textfile and then skips to next | input textfiles |
| | line. | |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| reset | Opens file in input state. Current position is 1. | any |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| rewrite | Opens file in output state. Current position is 1 | any |
| | and eof is true. Old components discarded. | |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| seek | Places current position of direct access file at | direct access |
| | specified component number. | files |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| write | Assigns parameter value to current file component | output or direct |
| | and advances current position. | access files |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| writedir | Advances current position in direct access file to | direct access |
| | designated component and performs a write. | files |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| writeln | Assigns parameter value to current textfile | output textfiles |
| | component, appends a line marker and advances | |
| | current position. | |
| | | |
-----------------------------------------------------------------------------------------------