0

Suppose G is a (large) two-dimensional array. If I save the array by writing G to a text file as in:

  WRITE(1,*) G

and then later in a separate subroutine I try to recover by doing this:

  READ (1,*)  G

Will the READ statement keep reading all the lines of the text file until G is filled up with values? Basically, how "smart" is this read statement in this context?

1 Answer 1

2

Yes. A list directed read statement will continue reading records until it has satisfied the list of input items or run out of file.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.