* New version of IRM New version of the IRM, updated to Medley. * moved to docs/medley-irm as discussed
225 lines
89 KiB
Plaintext
225 lines
89 KiB
Plaintext
INTERLISP-D REFERENCE MANUAL
|
||
STREAMS & FILES
|
||
"24"23. STREAMS AND FILES
|
||
2
|
||
|
||
A stream is an object that provides an interface to a physical or logical device. The stream object contains local data and methods that operate on the stream object. Medley's general-purpose I/O functions take a stream as one of their arguments. Not every device is capable of implementing every I/O operation, while some devices offer special functions for that device alone. Such restrictions and extensions are noted in the documentation of each device. The majority of the streams used in Medley fall into two categories: file streams and image streams.
|
||
A file is a sequence of data stored on some device that allows the data to be retrieved at a later time. Files are identified by a name specifying their storage devices. Input or output to a file is performed through a stream to the file, using OPENSTREAM (below). In addition, there are functions that manipulate the files themselves, rather than their data content.
|
||
An image stream is an output stream to a display device, such as the display screen or a printer. In addition to the standard output operations, an image stream implements a variety of graphics operations, such as drawing lines and displaying characters in multiple fonts. Unlike a file, the "content" of an image stream cannot be retrieved. Image streams are described in Chapter 26.
|
||
This chapter describes operations specific to file devices: how to name files, how to open streams to files, and how to manipulate files on their devices.
|
||
Opening and Closing File Streams
|
||
1
|
||
ÿÿ |