%N groptx %F $MIR/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_miriad/miriad/work/miriad-4.3.8/borrow/pgplot/sys/groptx.f
%D Open input/output text file [Unix]
%B
      INTEGER FUNCTION GROPTX (UNIT, NAME, DEFNAM, MODE)
      INTEGER UNIT, MODE
      CHARACTER*(*) NAME, DEFNAM

 Input:
  UNIT : Fortran unit number to use
  NAME : name of file to create
  DEFNAM : default file name (used to fill in missing fields for VMS)
  MODE : 0 to open for reading, 1 to open for writing.

 Returns:
  0 => success; any other value => error.
