home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sgi / 16215 < prev    next >
Encoding:
Text File  |  1992-11-10  |  2.5 KB  |  63 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!ornl!utkcs2!darwin.sura.net!spool.mu.edu!sgiblab!sgigate!odin!sgihub!eurohub!knobi.munich.sgi.com!knobi
  3. From: knobi@knobi.munich.sgi.com (Martin Knoblauch)
  4. Subject: Re: FORTRAN UNFORMATTED File Structure
  5. Message-ID: <1992Nov10.171629.20433@eurohub.neu.sgi.com>
  6. Sender: news@eurohub.neu.sgi.com (Net news)
  7. Nntp-Posting-Host: knobi.munich.sgi.com
  8. Organization: Silicon Graphics, Inc.
  9. References:  <1992Nov10.153645.12090@erenj.com>
  10. Date: Tue, 10 Nov 1992 17:16:29 GMT
  11. Lines: 50
  12.  
  13. In article <1992Nov10.153645.12090@erenj.com>, srfergu@rufus.erenj.com
  14. (Scott Ferguson) writes:
  15. |> Hi folks, sorry if this is an old question, I'm new to the sgi and
  16. |> the newsgroup.
  17. |> 
  18. |> When an unformatted file is created with FORTRAN on the SGI, is it
  19. |> unstructured (like a plain old binary file, no record markers), or
  20. |> does it have some goofy record structure?
  21. |> 
  22. |> Essentially, I'm hoping to read a binary data file with Dscribe from
  23. |> Explorer, and the file was created with SGI fortran. Having trouble,
  24. |> and it said something funny about markers, or structure, I can't
  25. |> quite
  26. |> remember.
  27. |> 
  28. |> Thanks a lot.
  29. |> 
  30. |> -- 
  31. |>
  32. ----------------------------------------------------------------------
  33. |> Scott Ferguson                        Exxon Research & Engineering
  34. |> Co.
  35. |> Project Engineer                      New Jersey
  36. |>
  37. ----------------------------------------------------------------------
  38. |> "Always bark at a dog."
  39.  
  40.  
  41.   If the fortran file was created "unformatted, sequential", there
  42. is a 4 byte length field before AND after each record. So there is some
  43. "structure" in this case. I don't know what explorer is complaining
  44. about.
  45.  
  46.   If the fortran file was written "unformatted, direct", there is
  47. no additional information in the file. All records have fixed length.
  48. Be aware that in this case the RECL of the fortran OPEN statement is
  49. measured in 4byte units instead of bytes.
  50.  
  51. Hope this helps
  52. Martin
  53. -- 
  54. +---------------------------------+----------------------------------+
  55. |Martin Knoblauch                 | Silicon Graphics GmbH            |
  56. |Application Support              | Am Hochacker 3 - Technopark      |
  57. |Silicon Graphics Computer Systems| W-8011 Grasbrunn-Neukeferloh, FRG|
  58. |                                 | Phone: (+int) 89 46108-179 or -0 |
  59. |                                 | Fax:   (+int) 89 46108-222       |
  60. +---------------------------------+----------------------------------+
  61. |Network: <knobi@sgi.com>         | V-Mail: 8935   | M/S: IMU-315    |
  62. +--------------------------------------------------------------------+
  63.