Article View: comp.sys.sun
Article #13708Fortran f77 unformatted io on stdin stdout
From: George Planansky
Date: Fri, 09 Feb 1990 03:30
Date: Fri, 09 Feb 1990 03:30
20 lines
1254 bytes
1254 bytes
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@ra.umb.edu Atmosphere Environment Research Cambridge, MA 02139 (617) 547-6207
Technical Details
Message-ID:
<4849@brazos.Rice.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request From: gplan@umb.umb.edu (George Planansky) Newsgroups: comp.sys.sun Subject: Fortran f77 unformatted io on stdin stdout Keywords: Miscellaneous Message-ID: <4849@brazos.Rice.edu> Date: 9 Feb 90 03:30:29 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 20 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 9, Issue 38, message 12