Close

Close[obj]

closes a stream or socket.

Details

Examples

Basic Examples  (2)

Open a stream:

Read from the stream object:

Close the stream:

Connect to a socket:

Write a simple request and read some of the response:

Close the socket:

Wolfram Research (1988), Close, Wolfram Language function, https://reference.wolfram.com/language/ref/Close.html (updated 2017).

Text

Wolfram Research (1988), Close, Wolfram Language function, https://reference.wolfram.com/language/ref/Close.html (updated 2017).

CMS

Wolfram Language. 1988. "Close." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/Close.html.

APA

Wolfram Language. (1988). Close. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Close.html

BibTeX

@misc{reference.wolfram_2024_close, author="Wolfram Research", title="{Close}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/Close.html}", note=[Accessed: 17-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_close, organization={Wolfram Research}, title={Close}, year={2017}, url={https://reference.wolfram.com/language/ref/Close.html}, note=[Accessed: 17-November-2024 ]}