HP Pascal/iX Reference Manual (31502-90022)
Table Of Contents
- Top of Document
- Preface
- Chapter 1 Introduction
- Chapter 2 Language Elements
- Chapter 3 Data Types
- Chapter 4 Expressions
- Chapter 5 The Declaration Section
- Chapter 6 Statements
- Chapter 7 Program Structure
- Chapter 8 Procedures and Functions
- Chapter 9 Standard Routines
- Chapter 10 Input and Output
- Chapter 11 System Programming Extensions
- Chapter 12 Compiler Options
![](/manual/hp/mpe-ix-7-5-operating-system/hp-pascalix-reference-manual-31502-90022/images/img-159.png)
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. | |
| | | |
-----------------------------------------------------------------------------------------------