Close

WMA link


Close[obj]

Closes a stream or socket.

obj can be an InputStream, or an OutputStream object, or a String. When obj is a string file path, one of the channels associated with it is closed.


Closing a file doesn't delete it from the filesystem.

If two streams are open with the same file, then a Close by file path closes only one of the streams:

Usually, the most-recent stream is closed, while the earlier-opened stream still persists:

However, one of the streams is closed:

Character
EndOfFile