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

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!wupost!emory!swrinde!cs.utexas.edu!hellgate.utah.edu!lanl!cochiti.lanl.gov!jlg
  3. From: jlg@cochiti.lanl.gov (J. Giles)
  4. Subject: Re: unformatted output: << SUMMARY >>
  5. Message-ID: <1992Nov6.210729.23032@newshost.lanl.gov>
  6. Sender: news@newshost.lanl.gov
  7. Organization: Los Alamos National Laboratory
  8. References: <1992Nov3.135015.14373@syma.sussex.ac.uk> <1992Nov4.102804.8781@uts.uni-c.dk> <1992Nov4.160112.26525@chpc.utexas.edu>
  9. Date: Fri, 6 Nov 1992 21:07:29 GMT
  10. Lines: 24
  11.  
  12. In article <1992Nov4.160112.26525@chpc.utexas.edu>, michael@chpc.utexas.edu (Michael Lemke) writes:
  13. |> [...]
  14. |> Doesn't have the record *number* to be stored at some place as well?  
  15. |> Nothing stops you from doing
  16. |> 
  17. |>          open( ,.... access='direct', .... )
  18. |>          write( ..., rec=777 ) data
  19. |>          write( ..., rec=32 ) mode_data
  20. |>          close( ... )
  21. |> 
  22. |> which gives you just two records of data and lots of `holes'.  Or am I
  23. |> missing something?
  24.  
  25. The standard doesn't actually *say* whether writing a file this way
  26. is legal or not.  That is, if you write a record number which is 
  27. well beyond the present file length, what happens.  The standard
  28. it silent on this question.  *MOST* implementations will simply
  29. extend the file as necessary and leave the intermediate record
  30. positions unchanged (that is, containing whatever the system
  31. patterns the disk with when you extend a file - if the system
  32. does this important operation!).
  33.  
  34. -- 
  35. J. Giles
  36.