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

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!rational.com!voltaire!davidm
  3. From: davidm@voltaire.Rational.COM (David Moore)
  4. Subject: Re: unformatted output: << SUMMARY >>
  5. Message-ID: <davidm.721508082@voltaire>
  6. Sender: news@rational.com
  7. Organization: Rational
  8. References: <1992Nov4.160112.26525@chpc.utexas.edu> <1992Nov5.111303.17921@uts.uni-c.dk> <1992Nov11.130931.2171@jyu.fi>
  9. Date: Wed, 11 Nov 1992 18:54:42 GMT
  10. Lines: 29
  11.  
  12. sakkinen@jyu.fi (Markku Sakkinen) writes:
  13.  
  14. >In article <1992Nov5.111303.17921@uts.uni-c.dk> ohnielse@oersted.ltf.dth.dk writes:
  15. >>In article 26525@chpc.utexas.edu, michael@chpc.utexas.edu (Michael Lemke) writes:
  16. >>>Doesn't have the record *number* to be stored at some place as well?  
  17. >>>Nothing stops you from doing
  18. >>>
  19. >>>         open( ,.... access='direct', .... )
  20. >>>         write( ..., rec=777 ) data
  21. >>>         write( ..., rec=32 ) mode_data
  22. >>>         close( ... )
  23. >>>
  24. >>>which gives you just two records of data and lots of `holes'.  Or am I
  25. >>>missing something?
  26.  
  27.  
  28. This is often true. However, some Fortran systems hook into some
  29. sort of "Record Manager" interface, in which case you may be able to
  30. control the organisation of your file with system directives, or with
  31. extended directives in your "open", or else with calls to
  32. system routines with lots of "$"s in their names. You may be able
  33. to convince the system to give you any of 57 varieties of indexed
  34. file, in which the record number is stored as an index with a pointer
  35. to the data. 
  36.  
  37. This will avoid allocating space for unused records. It may also allow
  38. variable length records. Need I also remark that its not portable?
  39.  
  40.  
  41.