Fortran f77 unformatted io on stdin stdout
George Planansky
gplan at umb.umb.edu
Fri Feb 9 14:30:29 AEST 1990
Regarding Sun's F77 (on a Sun 3, running 4.03), will it do unformatted
read, write on stdin, stdout? The Sun manual says you can use
"form='unformatted'" in an open statement, to change the attribute of a
file that is already open.
I can't find an assertion that rules this out for units 5 and 6. The
compiler accepts an "open(unit=5,form='unformatted')" statement, but it
bombs at runtime.
There is an io init library routine (in Fortran) which opens 5 and 6. Can
I use this to enable unformatted read, write?
I'm using the alternative of C subroutines, but it'd be a lot cleaner to
stick to Fortran. Useful as it would be, surely Sun's Fortran will do it,
right?
George Planansky email: gplan at ra.umb.edu
Atmosphere Environment Research
Cambridge, MA 02139
(617) 547-6207
More information about the Comp.sys.sun
mailing list