.READ - reference or change the current read unit.

Alternate Entry Name: _READ

Usage:

B:
   oldunit = .read( [newunit] );
C:
   int _read( [int newunit] ):

Where:

newunit
is an optional argument specifying the unit which is to become the current read unit.
oldunit
receives the number of the old read unit.

Description:

The current read unit number is returned. If a new unit is specified as an argument, it becomes the current read unit.

Notes:

Unlike most I/O functions in the UW Tools library, .READ does not accept FILE* pointers or IOV pointers; it only accepts unit numbers.

Copyright © 1996, Thinkage Ltd.