home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!darwin.sura.net!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!uknet!miclon!nreadwin
- From: nreadwin@micrognosis.co.uk (Neil Readwin)
- Newsgroups: comp.os.vms
- Subject: Re: Using C to read Fortran Files
- Message-ID: <C0JJK2.Mzo@micrognosis.co.uk>
- Date: 8 Jan 93 15:12:01 GMT
- 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>
- Sender: news@micrognosis.co.uk
- Organization: Micrognosis, a division of CSK(UK) Ltd
- Lines: 17
-
- larry@eco.twg.com (Lawrence B. Henry III) writes:
- |> i = open("test", O_RDONLY, "rat=ftn");
- |> fp = fdopen(i, "r");
- |>
- |> not sure if this solves your problem.. but checking the VAX C documentation
- |> it seem to imply it will.. The "rat=ftn" tells the open call that the record
- |> attributes of the file contain FORTRAN print control.
-
- This does not solve the problem. Presumably, most additional parameters to
- open/creat/fopen etc are used to fill in parts of the RAB/FAB/XAB before
- the RMS open call. For a call to open an existing file the record
- attributes are an *output* of the open call, they are only an input when
- creating a new file (modulo PPF hacks). Maybe you should have tried it
- first. Neil.
- --
- Phone: +44 71 815 5283 E-mail: nreadwin@micrognosis.co.uk
- Anything is a cause for sorrow that my mind or body has made
-