| THE META-HTML LANGUAGE REFERENCE MANUAL

| [TOC] |

## Manual Page Viewer

Name: STREAM-GET

Section: Stream Operators

Synopsis:

`<stream-get STREAM [STOP-AT=CHARACTER]>`

Description:

Reads a chunk of data from STREAM and returns it. STREAM is read until the character value specified by CHARACTER (defaulting to a newline) is reached, and that data upto and including the final CHARACTER is returned. One way to read all of the available data is to supply the empty string as the value of STOP-AT:

      <with-open-stream stream www.ua.com:80 type=tcp mode=read-write>
        <stream-put stream "GET /welcome.mhtml HTTP/1.0\n\n">
        <set-var the-page=<stream-get stream stop-at="">>
      </with-open-stream>

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