home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / fortran / 4344 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.5 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!haven.umd.edu!darwin.sura.net!Sirius.dfn.de!mailgzrz.TU-Berlin.DE!cs.tu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!dkuug!uts!fysik!ohnielse
  2. From: ohnielse@fysik.uni-c.dk (Ole Holm Nielsen)
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: extra 8 bytes
  5. Message-ID: <1992Nov18.102218.22763@uts.uni-c.dk>
  6. Date: 18 Nov 92 10:22:18 GMT
  7. References: <1e8i03INNecd@corax.udac.uu.se>
  8. Sender: news@uts.uni-c.dk (News)
  9. Reply-To: ohnielse@fysik.uni-c.dk
  10. Organization: UNI-C, Danish Computer Center for Research and Education
  11. Lines: 20
  12. Nntp-Posting-Host: fysik.uni-c.dk
  13.  
  14. In article 1e8i03INNecd@corax.udac.uu.se, l@chiron.astro.uu.se (Lars Kamel) writes:
  15. >In article <1992Oct20.204145.27333@uceng.UC.EDU>, juber@uceng.UC.EDU (James Uber) writes:
  16. >|> When using fortran to write unformated data, e.g.
  17. >|> 
  18. >|>     open( 10, file=file1, form='unformated')
  19. >|>     write( 10 ) (real(i),i=1,1000)
  20. >|> 
  21. >|> i get a file length of 4008 bytes, or 8 bytes too much.
  22. >|> I never really cared before, but now i want to use
  23. >|> these unformatted data files in another visualization
  24. >|> system that has the capability to read "raw" data.
  25. >|> I can get around the 4 extra bytes on the front and
  26. >|> back of the file within this system, by telling it
  27. >|> to skip the first word and so on, but is there a way
  28. >|> to tell fortran unformatted write not to do this?
  29. >|> Or, is it an operating system thing?
  30.  
  31. There was a discussion in this group on the origin and usefulness of
  32. the extra bytes a week or two ago.  The extra bytes are record-length
  33. information.
  34.