home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!caen!uwm.edu!rutgers!micro-heart-of-gold.mit.edu!xn.ll.mit.edu!ll.mit.edu!akearns
- From: akearns@ll.mit.edu ( Adam Kearns)
- Newsgroups: comp.os.vms
- Subject: Reading C output with FORTRAN
- Summary: Looking for something a little easier than QIO
- Message-ID: <1992Jul23.183129.10803@ll.mit.edu>
- Date: 23 Jul 92 18:31:29 GMT
- Sender: news@ll.mit.edu
- Organization: MIT Lincoln Laboratory
- Lines: 20
-
-
- Hi. I'm not sure if this is the right place to post this, but someone
- here can probably help.
-
- We have a C program that writes out a file using the write() command.
- Of course, VAX C creates a STREAM_LF type file instead of a binary file
- like it would in UNIX. Then a FORTRAN program has to read it in and
- write it to tape. We can do it, unfortunately it is a little cumbersome
- on both sides. The C program has to write out fixed size blocks for the
- FORTRAN program to read it. The FORTRAN program uses QIO to read in the
- file, but has to keep track of what disk block it is on for the QIO to
- work. It works OK for now, but we would like a more intuitive way.
-
- Is there any way to write a file in C that is not a STREAM_LF
- type file, or is there a way to open the file so FORTRAN can use the
- READ statement to read the file. It would also be nice if the records
- could be variable length.
- Thanks for your help,
- Adam Kearns
- akearns@ll.mit.edu
-