9.108. FSEEK
9.108 FSEEK — Low level file positioning subroutine
- Description:
- Moves UNIT to the specified OFFSET. If WHENCE is set to 0, the OFFSET is taken as an absolute value
SEEK_SET
, if set to 1, OFFSET is taken to be relative to the current positionSEEK_CUR
, and if set to 2 relative to the end of the fileSEEK_END
. On error, STATUS is set to a nonzero value. If STATUS the seek fails silently.This intrinsic routine is not fully backwards compatible with
g77
. Ing77
, theFSEEK
takes a statement label instead of a STATUS variable. If FSEEK is used in old code, changeCALL FSEEK(UNIT, OFFSET, WHENCE, *label)
to
INTEGER :: status CALL FSEEK(UNIT, OFFSET, WHENCE, status) IF (status /= 0) GOTO label