Close

Close[obj]

closes a stream or socket.

Details

Examples

Basic Examples  (2)

Open a stream:

In[1]:=
Click for copyable input
Out[1]=

Read from the stream object:

In[2]:=
Click for copyable input
Out[2]=

Close the stream:

In[3]:=
Click for copyable input
Out[3]=

Connect to a socket:

In[1]:=
Click for copyable input
Out[1]=

Write a simple request and read some of the response:

In[2]:=
Click for copyable input
Out[2]=

Close the socket:

In[3]:=
Click for copyable input
Out[3]=

See Also

OpenAppend  OpenRead  SetOptions  Streams  Sockets

Tutorials

Introduced in 1988
(1.0)