C.READ - ***OBSOLETE*** use ".SEEK".

Usage:

old_unit = c.read( unit );

Where:

unit
is the number of an I/O unit which is already open.
old_unit
receives the unit number of the previous read unit.

Description:

The given "unit" is made the current read unit and the number of the previous read unit is returned. If "unit" is already an input unit or if "unit" is not a file, no further action is taken. If "unit" is an output file, the file is marked with an end-of-file and rewound. The contents of the file may then be read by subsequent read routines. Note that it is an error to direct output to a file which has been made the read unit by calling C.READ.

C.READ is for specialized applications only. The normal procedure is to close the unit with CLOSE, and then to reopen the file for reading with OPEN.

Notes:

C.READ does not work with string I/O or tape I/O.

Copyright © 1996, Thinkage Ltd.