REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: close

close  port

Closes a port.


port [port!]

See also:

open   load   do  


Closes a port opened earlier with the open function. Any changes to the port data that have been buffered will be written.

port: open %test-file.txt
insert port "Date: "
insert port form now
insert port newline
close port

print read %test-file.txt

  TOC < Back Next > - WIP Wiki Feedback Admin