HP Pascal/iX Reference Manual (31502-90022)

10- 2
Table 10-1. File Procedures and Functions
-----------------------------------------------------------------------------------------------
| | | |
| Procedure or | Action | Permissible Files |
| Function | | |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| append | Opens file in output state. Current position is | any |
| | after last component and eof is true. | |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| associate | Associates a logical file with an open physical | any |
| | file. | |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| close | Closes a file. | any |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| disassociate | Disassociates a logical file from it's associated | any |
| | open physical file. | |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| eof | Returns true if file opened in output state, if no | any |
| | component exists for sequential input, or if | |
| | current position in direct access file is greater | |
| | than lastpos. | |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| eoln | Returns true if the current position of a text file | input textfiles |
| | is at a line marker. | |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| get | Allows assignment of current component to buffer | input or direct |
| | and, in some cases, advances current position. | files |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| lastpos | Returns index of highest written component of | direct access |
| | direct access file. | files |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| linepos | Returns number of characters read from or written | textfiles |
| | to a textfile since the last line marker. | |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| maxpos | Returns maxint or the maximum component possible to | direct access |
| | read or write. Check implementation. | files |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| open | Opens file in direct access state. Current | any file except a |
| | position is 1 and eof is false. Eof is true if | textfile |
| | file is empty. | |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| overprint | A form of write which causes the next line of a | output textfiles |
| | textfile to print over the current line. | |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| page | Causes skip to top of new page when a textfile is | output textfiles |
| | printed. | |
| | | |
-----------------------------------------------------------------------------------------------