home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / vms / 12729 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.4 KB

  1. 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
  2. From: akearns@ll.mit.edu ( Adam Kearns)
  3. Newsgroups: comp.os.vms
  4. Subject: Reading C output with FORTRAN
  5. Summary: Looking for something a little easier than QIO
  6. Message-ID: <1992Jul23.183129.10803@ll.mit.edu>
  7. Date: 23 Jul 92 18:31:29 GMT
  8. Sender: news@ll.mit.edu
  9. Organization: MIT Lincoln Laboratory
  10. Lines: 20
  11.  
  12.  
  13.     Hi.  I'm not sure if this is the right place to post this, but someone
  14. here can probably help.
  15.  
  16.     We have a C program that writes out a file using the write() command.
  17. Of course, VAX C creates a STREAM_LF type file instead of a binary file
  18. like it would in UNIX.  Then a FORTRAN program has to read it in and
  19. write it to tape.  We can do it, unfortunately it is a little cumbersome
  20. on both sides.  The C program has to write out fixed size blocks for the
  21. FORTRAN program to read it.  The FORTRAN program uses QIO to read in the
  22. file, but has to keep track of what disk block it is on for the QIO to
  23. work.  It works OK for now, but we would like a more intuitive way.
  24.  
  25.     Is there any way to write a file in C that is not a STREAM_LF 
  26. type file, or is there a way to open the file so FORTRAN can use the 
  27. READ statement to read the file.  It would also be nice if the records 
  28. could be variable length.  
  29.                     Thanks for your help,    
  30.                     Adam Kearns
  31.                     akearns@ll.mit.edu
  32.