home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / vms / 20585 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.4 KB

  1. Path: sparky!uunet!wupost!darwin.sura.net!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!uknet!miclon!nreadwin
  2. From: nreadwin@micrognosis.co.uk (Neil Readwin)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Using C to read Fortran Files
  5. Message-ID: <C0JJK2.Mzo@micrognosis.co.uk>
  6. Date: 8 Jan 93 15:12:01 GMT
  7. References: <C0Fyo3.70D@ccu.umanitoba.ca> <C0G1rw.81L@ccu.umanitoba.ca> <C0GHCC.Cwp@ccu.umanitoba.ca> <1993Jan7.030702.4174@dbased.nuo.dec.com> <1993Jan7.171849.17042@eco.twg.com>
  8. Sender: news@micrognosis.co.uk
  9. Organization: Micrognosis, a division of CSK(UK) Ltd
  10. Lines: 17
  11.  
  12. larry@eco.twg.com (Lawrence B. Henry III) writes:
  13. |> i = open("test", O_RDONLY, "rat=ftn");
  14. |> fp = fdopen(i, "r");
  15. |> 
  16. |> not sure if this solves your problem.. but checking the VAX C documentation
  17. |> it seem to imply it will.. The "rat=ftn" tells the open call that the record
  18. |> attributes of the file contain FORTRAN print control.
  19.  
  20. This does not solve the problem. Presumably, most additional parameters to
  21. open/creat/fopen etc are used to fill in parts of the RAB/FAB/XAB before
  22. the RMS open call. For a call to open an existing file the record
  23. attributes are an *output* of the open call, they are only an input when
  24. creating a new file (modulo PPF hacks). Maybe you should have tried it
  25. first. Neil.
  26. -- 
  27.  Phone: +44 71 815 5283  E-mail: nreadwin@micrognosis.co.uk
  28.  Anything is a cause for sorrow that my mind or body has made
  29.