Chapter 27 -
This chapter provides a brief description of the basic mechanism for reading and writing document data to a stream. It also includes a recipe and sample code that demonstrate how to
Working With Streams
MacApp's stream mechanism and classes are described in "Streams," beginning on page 50 in Chapter 3, "Core Technologies."
- use a handle stream to write text data to a handle
 
For a more complete example of how to read and write a document, see "Recipe--Using a Document Class With a Text-Editing View," beginning on page 434.
Chapter Contents
- Overview
 
- Writing a Document to a File Stream
 - Reading a Document From a Stream
 - Recipes--Streams
 
- Recipe--Using a Handle Stream to Write Text to a Handle
 - Create a Handle
 - Create and Initialize a Handle Stream
 - Write Text Data to the Handle Stream
 - Free the Handle Stream
 - Using the Handle Data