[mod.computers.vax] Reading lines in Fortran

STREIFF@HARTFORD.BITNET.UUCP (03/03/87)

Hi,

        I want to read from a data file with a fortran program. The problem is t
hat
the file has only one line and the length of the line varies every time we run t
he
program (it could be over 1MB long). Were writting a program to write/read IBM
tapes. Does anyone know how to read one char at a time and ignore what the char
is?
thanks.


                                                                S. David Streiff
                                                                Asst. Programmer
                                                                Univ of Hartford
                                                                West Hartford CT

                                        BitNet: STREIFF@HARTFORD.BITNET

Disclaimer: Im a student so dont take anything that i say seriously.

KFL@AI.AI.MIT.EDU.UUCP (03/04/87)

No doubt someone will explain how this can be done in a few dozen
lines of assembler using SYS$QIOW.

But if you dislike assembler and SYS$QIOW as much as I do, there is
an easier way.

Use the DUMP command on the tape.  The output of the DUMP command
will be a reasonable text file with lines no longer than 132
characters.  It is then easy to write a program in the language of
your choice to read the DUMP file.
								...Keith