Chapter 14: I/O: Streams and Files

  • Edmund Weitz


Communication between Common Lisp and the “world outside” is usually performed via streams, whether you are interacting with files, with network connections, or with your IDE. These streams, which can be character streams (for textual data of all kinds) or binary streams (to transfer bits in chunks of bytes), are conceptually easy to use but still remarkably flexible and they are ultimately also used by the Lisp reader (see  Chapter 8) and the Lisp printer (see  Chapter 9). This chapter is about the various ways you can use, adapt, and combine streams and it ends with a recipe that demonstrates how you can create your own stream classes for almost every task you can imagine.


Random Access Binary Data Textual Data Network Connection Output Stream 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Supplementary material (5 kb)
chapter-14 (zip 5 kb)

Copyright information

© Edmund Weitz 2016

Authors and Affiliations

  • Edmund Weitz
    • 1
  1. 1.HamburgGermany

Personalised recommendations