home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / fortran / 2824 < prev    next >
Encoding:
Internet Message Format  |  1992-07-24  |  1.2 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!zaphod.mps.ohio-state.edu!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.lang.fortran
  4. Subject: Reading C output in FORTRAN
  5. Message-ID: <1992Jul24.172254.24198@ll.mit.edu>
  6. Date: 24 Jul 92 17:22:54 GMT
  7. Sender: news@ll.mit.edu
  8. Organization: MIT Lincoln Laboratory
  9. Lines: 16
  10.  
  11.  
  12.     Hi. We have some files on a VAX that are STREAM_LF type, and we would
  13. like to read them in FORTRAN using the READ command.  The file has a 
  14. fixed length of 16384 bytes.  The problem is that using the READ command
  15. doesn't seem to move the file pointer to the where it stopped reading, so
  16. we read the same data over again.  We have a way using QIO to read in the
  17. file, but that requires computing the number of disk blocks we read and
  18. starting from there.  This technique is rather inconvienent, espically
  19. if a record ends in the middle of a disk block (for a different file, 
  20. obviously this one does).  It would be nice to be able to use the READ 
  21. command and have the program keep track of where it is in the file
  22. like you can in VAX C.  Any suggestions would be appreciated.
  23.  
  24.                     Thanks for your help,    
  25.                     Adam Kearns
  26.                     akearns@ll.mit.edu
  27.