Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site decwrl.UUCP Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!decwrl!dec-rhea!dec-babel!blickstein From: blickstein@babel.DEC (Dave Blickstein) Newsgroups: net.lang Subject: In response to using FORTRAN files with VAX-11 C Message-ID: <3443@decwrl.UUCP> Date: Mon, 5-Aug-85 11:34:45 EDT Article-I.D.: decwrl.3443 Posted: Mon Aug 5 11:34:45 1985 Date-Received: Tue, 6-Aug-85 11:07:23 EDT Sender: daemon@decwrl.UUCP Organization: Digital Equipment Corporation Lines: 7 One can use the Q format item in FORTRAN to get the length of a record that was read. For example: READ (1,'(Q,A)') LENGTH, STRING TYPE *, 'String read is "',STRING(1:LENGTH),'"' You can then use substrings, as shown above, to access only the data read.