6 Files
So far, we’ve discussed how to create and work with instances of various data types. In addition, you already know how the program flow can be affected by control structures. Now it's time to put this knowledge to good use and enable you to write more complex programs. This chapter is dedicated to the various options you have for the input or output of data. This refers in particular to reading and writing files, which is part of the standard repertoire of a programmer.
Before we turn specifically to reading and writing files in Python, the following section will introduce you to the necessary basics that enable you to do so.
6.1 Data Streams
A data stream is a continuous sequence of data. We distinguish between two types of data ...
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.
Read now
Unlock full access