FORTRAN 77 Language Reference

General Restriction

Do not reference a function in an I/O list if executing that function causes an I/O statement to be executed. Example:


	

WRITE( 1, 10)  Y, A + 2.0 * F(X)   !  Wrong if F() does I/O