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.

Arguments:

port [port!]

See also:

open   load   do  

Description

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
read


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin