HP Pascal/iX Programmer's Guide (31502-90023)

3- 2
Table 3-1. Categories of Input/Output Routines
------------------------------------------------------------------------------------------------
|||||
||Sequential I/O | Textfile I/O | Direct I/O |
|||||
------------------------------------------------------------------------------------------------
|||||
| Opening Procedures ||||
||
reset
|
reset
|
open
|
||
rewrite
|
rewrite
||
||
append
|
append
||
|||||
------------------------------------------------------------------------------------------------
|||||
| Input Procedures ||||
||
get
|
get
|
get
|
||
read
|
read
|
read
|
|||
readln
|
readdir
|
|||||
------------------------------------------------------------------------------------------------
|||||
| Output Procedures ||||
||
put
|
put
|
put
||
write
|
write
|
write
|
|||
writeln
|
writedir
|
|||
page
||
|||
prompt
||
|||
overprint
||
|||||
------------------------------------------------------------------------------------------------
|||||
| Positioning Procedure| None | None |
seek
|
|||||
------------------------------------------------------------------------------------------------
|||||
| Association ||||
| Procedures |
associate
|
associate
|
associate
|
||
disassociate
|
disassociate
|
disassociate
|
|||||
------------------------------------------------------------------------------------------------
|||||
| Status Functions ||||
||
eof
|
eof
|
eof
|
|||
eoln
|
lastpos
|
|||
linepos
|
maxpos
|
||
position
||
position
|
|||||
------------------------------------------------------------------------------------------------
|||||
| Closing Procedure |
close
|
close
|
close
|
|||||
------------------------------------------------------------------------------------------------
General File Information
You need the general file information in this section to understand the
rest of this chapter. Examine Figure 3-2 , and then read the
explanations of the entities in italics, whose relationships it shows.
Figure 3-2 illustrates the relationship between physical files (in
the operating system environment) and logical files (in the program
environment). It also shows how logical files, textfiles, and the
standard textfiles
input
and
output
are related.