home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!news.udel.edu!usenet
- From: zagar@chester.cms.udel.edu (Randy Zagar)
- Subject: Re: extra 8 bytes
- Message-ID: <By6IxC.L7L@news.udel.edu>
- Sender: usenet@news.udel.edu
- Nntp-Posting-Host: chester.cms.udel.edu
- Reply-To: zagar@chester.cms.udel.edu
- Organization: Marine Studies, University of Delaware
- References: <1ecurhINNogd@corax.udac.uu.se>
- Date: Mon, 23 Nov 1992 17:22:23 GMT
- Lines: 29
-
- As has been previously mentioned, the extra 8 bytes at
- the beginning of your file is record length information.
-
- THIS IS BECAUSE YOUR COMPILER DEFAULTS TO A SEQUENTIAL
- ACCESS MODE IF YOU DON'T SPECIFY OTHERWISE.
-
- To really fix your problem, you need to pick a record length
- for your I/O to the file and use ACCESS='DIRECT' and RECL=####
- in your open statement. For more info, please check your local
- F77 docs for direct access I/O.
-
- I've used this technique several times under different UNIX Fortrans
- and have had no problems. Files written in this way by F77 apps. *can*
- be read by C-lang. applications w/ no problems.
-
- -Randy
-
-
-
- ---
-
- ____________________________________________________________________________
- / \
- | Randy Zagar Thinking: that waste of time |
- | Internet: zagar@Chester.CMS.UDel.Edu between seeing something and |
- | Bell-net: 302/831-1139 knowing what to do about it. |
- \____________________________________________________________________________/
-
-
-