Game Development Reference
In-Depth Information
Fig. 22.1 The property panel
of the file 'levels.txt'
Fig. 22.2
Classes for reading and writing files
22.5.2 Streams Versus Text Readers and Writers
The main difference between the classes in the diagram is that some of them are
Stream subclasses, whereas others are subclasses of a reader or writer class.
In a Stream the separate bytes of a file are read or written. A reader or writer class
deals with larger units: characters and strings in a Tex t W r i t e r , integers, doubles and
other basic types in a BinaryWriter and coherent parts of an XML document in the
XMLWriter .
 
Search WWH ::




Custom Search