Next Previous Up Top Contents Index

5.11 The STREAMS module

<file-stream>

Open abstract instantiable class

Summary

The class of single-buffered streams over disk files.

Superclasses

<buffered-stream> <positionable-stream>

Init-keywords

locator:
An instance of <string> or <locator>. This specifies the file over which to stream.

direction:
Specifies the direction of the stream. It must be one of #"input", #"output", or #"input-output". Default value: #"input".

if-exists:
One of #f, #"new-version", #"overwrite", #"replace", #"append", #"truncate", #"signal". Default value: #f.

if-does-not-exist:

One of #f, #"signal", or #"create". Default value: depends on the value of direction:.

asynchronous?:
If #t, all writes on this stream are performed asynchronously. Default value: #f.

Library

io

Module

streams

Description

The class of single-buffered streams over disk files. It is a subclass of <positionable-stream> and <buffered-stream>.

When you instantiate this class, an indirect instance of it is created. The file being streamed over is opened immediately upon creating the stream.

The class supports several init-keywords: locator:, direction:, if-exists:, and if-does-not-exist:.

Operations

close make file-stream-class

See also

make file-stream-class, page 75


System and I/O Reference - 31 MAR 2000

Next Previous Up Top Contents Index