home *** CD-ROM | disk | FTP | other *** search
- 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
- From: akearns@ll.mit.edu ( Adam Kearns)
- Newsgroups: comp.lang.fortran
- Subject: Reading C output in FORTRAN
- Message-ID: <1992Jul24.172254.24198@ll.mit.edu>
- Date: 24 Jul 92 17:22:54 GMT
- Sender: news@ll.mit.edu
- Organization: MIT Lincoln Laboratory
- Lines: 16
-
-
- Hi. We have some files on a VAX that are STREAM_LF type, and we would
- like to read them in FORTRAN using the READ command. The file has a
- fixed length of 16384 bytes. The problem is that using the READ command
- doesn't seem to move the file pointer to the where it stopped reading, so
- we read the same data over again. We have a way using QIO to read in the
- file, but that requires computing the number of disk blocks we read and
- starting from there. This technique is rather inconvienent, espically
- if a record ends in the middle of a disk block (for a different file,
- obviously this one does). It would be nice to be able to use the READ
- command and have the program keep track of where it is in the file
- like you can in VAX C. Any suggestions would be appreciated.
-
- Thanks for your help,
- Adam Kearns
- akearns@ll.mit.edu
-