Attempting to access the contents of an open stream.

#6059   Run-time catchable error

Attempting to access the contents of an open stream.

Additional Information

For stream X.

Explanation

It is not allowed to use the content of a stream unless it is closed.