Attempting to copy a stream which is open.

#6082   Run-time catchable error

Attempting to copy a stream which is open.

Additional Information

For stream 'X'.

Explanation

Only streams which are closed can be copied to.