Skip to Content
Practical Common Lisp
book

Practical Common Lisp

by Peter Seibel
April 2005
Beginner to intermediate
528 pages
16h 20m
English
Apress
Content preview from Practical Common Lisp

CHAPTER 14Files and File I/O

Common Lisp provides a rich library of functionality for dealing with files. In this chapter I'll focus on a few basic file-related tasks: reading and writing files and listing files in the file system. For these basic tasks, Common Lisp's I/O facilities are similar to those in other languages. Common Lisp provides a stream abstraction for reading and writing data and an abstraction, called pathnames, for manipulating filenames in an operating system–independent way. Additionally, Common Lisp provides other bits of functionality unique to Lisp such as the ability to read and write s-expressions.

Reading File Data

The most basic file I/O task is to read the contents of a file. You obtain a stream from which you can ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Land of Lisp

Land of Lisp

Conrad Barski M.D.
The Go Programming Language

The Go Programming Language

Alan A. A. Donovan, Brian W. Kernighan
The Rust Programming Language, 2nd Edition

The Rust Programming Language, 2nd Edition

Steve Klabnik, Carol Nichols

Publisher Resources

ISBN: 9781590592397Purchase book