home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!mcsun!news.funet.fi!network.jyu.fi!sakkinen
- From: sakkinen@jyu.fi (Markku Sakkinen)
- Subject: Re: unformatted output: << SUMMARY >>
- Message-ID: <1992Nov11.130931.2171@jyu.fi>
- Organization: University of Jyvaskyla, Finland
- References: <1992Nov4.160112.26525@chpc.utexas.edu> <1992Nov5.111303.17921@uts.uni-c.dk>
- Date: Wed, 11 Nov 1992 13:09:31 GMT
- Lines: 29
-
- In article <1992Nov5.111303.17921@uts.uni-c.dk> ohnielse@oersted.ltf.dth.dk writes:
- >In article 26525@chpc.utexas.edu, michael@chpc.utexas.edu (Michael Lemke) writes:
- >>Doesn't have the record *number* to be stored at some place as well?
- >>Nothing stops you from doing
- >>
- >> open( ,.... access='direct', .... )
- >> write( ..., rec=777 ) data
- >> write( ..., rec=32 ) mode_data
- >> close( ... )
- >>
- >>which gives you just two records of data and lots of `holes'. Or am I
- >>missing something?
- >
- >I think you are exactly right !
-
- No! Think of a direct-access file as an array on disk.
- Indices are not _stored_ with array elements, they are just used
- to calculate their addresses. Likewise, there is no need
- to store record numbers with the records.
-
- ----------------------------------------------------------------------
- Markku Sakkinen (sakkinen@jytko.jyu.fi)
- SAKKINEN@FINJYU.bitnet (alternative network address)
- Department of Computer Science and Information Systems
- University of Jyvaskyla (a's with umlauts)
- PL 35
- SF-40351 Jyvaskyla (umlauts again)
- Finland
- ----------------------------------------------------------------------
-