home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / fortran / 4274 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.5 KB  |  40 lines

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