Thank you again for the help. This program doesn't need an allocate statement. And I don't understand exactly why not because I haven't written a program with that statement.
I put the write statement after the IF that checks for end-of-file.
Another problem was that X and Y were actually...
I changed it to this:
READ(14, *, IOSTAT = EOF) CHAR(N), X(N), Y(N)
WRITE (16, *) "X = ", X(N), " Y = ", Y(N)
I still get a runtime error (below), but it's changed to a WRITE problem, whereas it was a READ problem before.
"The instruction at address 4534636 attempted to write to location...
I am running Fortran 90 in DOS and trying to read one-dimensional arrays from an input file. These are the first few lines in the file.
Sample Influent Effluent
Date BOD (mg/l) BOD (mg/l)
01/22/88 203.1 7.6
01/31/88 159.0 15.1
02/05/88...
I am using Salford's Fortran 95 in DOS.
This program is intended to find coordinates on a 15 x 15 grid. Eventually, it will have a subroutine in addition to the function I have written. For now, I am trying to pass two variables to the function. The error from the compiler's error message is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.