CLOSE

REBOL Dictionary 2.0


Summary:

Closes an open port connection.

Usage:

close port

Arguments:

port - The port argument. (must be: port)

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
    
    25-Jan-2003/17:28:30-8:00Date: 
    25-Jan-2003/17:22:24-8:00Date: 
    25-Jan-2003/17:19:40-8:00Date: 
    25-Jan-2003/17:18:55-8:00Date: 
    25-Jan-2003/16:29:30-8:00Date: 
    25-Jan-2003/16:26:23-8:00Date: 
    25-Jan-2003/16:07:11-8:00Date: 
    25-Jan-2003/16:03:11-8:00Date: 
    25-Jan-2003/16:00:20-8:00Date: 
    25-Jan-2003/0:12:37-8:00Date: 
    25-Jan-2003/0:09:17-8:00Date: 
    25-Jan-2003/0:06:30-8:00Date: 
    25-Jan-2003/0:06-8:00Date: 
    25-Jan-2003/0:05:41-8:00Date: 
    24-Jan-2003/23:51:23-8:00Date: 
    24-Jan-2003/23:50:40-8:00Date: 
    24-Jan-2003/23:39:36-8:00Date: 
    24-Jan-2003/23:37:56-8:00Date: 
    24-Jan-2003/23:34:56-8:00Date: 
    24-Jan-2003/15:56:42-8:00Date: 
    24-Jan-2003/15:56:21-8:00Date: 
    24-Jan-2003/15:54:17-8:00Date: 
    24-Jan-2003/15:49:24-8:00Date: 
    24-Jan-2003/15:16:49-8:00Date: 
    24-Jan-2003/14:22:21-8:00Date: 
    24-Jan-2003/13:53:46-8:00Date: 
    24-Jan-2003/13:47:20-8:00Date: 
    24-Jan-2003/13:46:09-8:00Date: 
    24-Jan-2003/13:45:16-8:00Date: 
    24-Jan-2003/13:43:22-8:00Date: 
    24-Jan-2003/13:20:40-8:00Date: 
    24-Jan-2003/13:19:46-8:00Date: 
    24-Jan-2003/13:18:02-8:00Date: 
    24-Jan-2003/13:15:23-8:00Date: 
    24-Jan-2003/13:12:14-8:00Date: 
    24-Jan-2003/12:31:58-8:00Date: 
    24-Jan-2003/12:30:23-8:00Date: 
    24-Jan-2003/9:31:45-8:00Date: 
    24-Jan-2003/9:22:35-8:00Date:

Related:

do - Evaluates a block, file, URL, function, word, or any other value.
load - Loads a file, URL, or string. Binds words to global context.
open - Opens a new port connection.
send - Send a message to an address (or block of addresses)


<Back | Index | Next>

Copyright 2003 REBOL Technologies