Chapter 10. File and Text Operations

This chapter covers most of the issues related to dealing with files and the filesystem in Python. A file is a stream of bytes that a program can read and/or write; a filesystem is a hierarchical repository of files on a computer system.

Get Python in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.