| THE META-HTML LANGUAGE REFERENCE MANUAL

| [TOC] |

## Manual Page Viewer

Name: WITH-OPEN-STREAM

Section: Stream Operators

Synopsis:

`<with-open-stream VAR NAME [TYPE=(FILE|TCP)] [MODE=OPEN-MODE]>
%body
</with-open-stream>`

Description:

Create an environment in which VAR is bound to the indicator of an open stream, named by NAME.

The stream is either of type `FILE`, or `TCP`, in which case it is an open network connection. When TYPE is `TCP`, NAME specifies the host and port to connect to, in the form `Hostname:Port-Number`. PORT-NUMBER can either be a symbolic name which is widely recognized (e.g., `SMTP`), or the digits which make up the port number, (e.g., `25`). The possible values for MODE are:

- `READ`:
  The stream is opened for reading only. The underlying object must already exist.

- `WRITE`:
  The stream is opened for writing only. The underlying object must already exist.

- `READ-WRITE`:
  The stream is opened for both reading and writing. The underlying object must already exist.

- `APPEND`:
  The stream is opened for writing only. If the underlying object did not already exist, it is created. Information written to this stream appears after any information that was already present in the underlying object.

- `WRITE-CREATE`:
  The stream is opened for writing only. The underlying object is created fresh, even if it had already existed.

Edit Pointer
Function Index
Variable Index
Variable Editor

The META-HTML Reference Manual V1.4 Copyright © 1995, 1996, Brian J. Fox, 1996, 1997 Universal Access Inc.
Found a bug? Send mail to bug-manual@metahtml.com