blickstein@babel.DEC (Dave Blickstein) (08/05/85)
There is an undocumented switch tha can be used when the file is opened that will instruct the C RTL NOT to translate the leading character of each record as though it was a FORTRAN carriage control character. It can be used as follows: open ("file.ext", mode, flags, "ctx=nocvt"); or fopen ("file.ext", access, "ctx=nocvt"); If used the entire record is passed to the user, including the leading character.
blickstein@babel.DEC (Dave Blickstein) (08/05/85)
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.