Node: FSeek Intrinsic, Next: , Previous: Fraction Intrinsic, Up: Table of Intrinsic Functions



FSeek Intrinsic

     CALL FSeek(Unit, Offset, Whence, ErrLab)
     

Unit: INTEGER; scalar; INTENT(IN).

Offset: INTEGER; scalar; INTENT(IN).

Whence: INTEGER; scalar; INTENT(IN).

ErrLab: *label, where label is the label of an executable statement; OPTIONAL.

Intrinsic groups: unix.

Description:

Attempts to move Fortran unit Unit to the specified Offset: absolute offset if Whence=0; relative to the current offset if Whence=1; relative to the end of the file if Whence=2. It branches to label ErrLab if Unit is not open or if the call otherwise fails.