next up previous contents index
Next: Format specifications Up: Usage of FZ Previous: Disk fileFortran

Disk file, C Library

This mode is available only on machines running under UNIX, and only on machines where the CF package of KERNLIB has been implemented.

Input

Open the file and initialize FZ:

      CALL CFOPEN (IQUEST(1), 0, 900, 'r ', 0, 'zname ', ISTAT)
      CALL FZFILE (Lun, 900, 'L')

Output

Open the file and initialize FZ:

      CALL CFOPEN (IQUEST(1), 0, 900, 'w ', 0, 'zname ', ISTAT)
      CALL FZFILE (Lun, 900, 'LO')

The record-length is given as the number of machine words per record, thus '900' is for 32-bit machines; on 64-bit machines this would be '450'.

Note the passing of the file-pointer returned from CFOPEN to FZFILE via IQUEST(1).


Janne Saarela
Mon May 15 08:34:47 METDST 1995