This chapter covers techniques for working with files and processes. We first look at the facilities Python has for portably working with both files and processes, then we’ll look at Windows-specific techniques. If you’re an experienced Python developer, you may wish to skip to the later sections; if you’re new to Python, this is essential groundwork.
We cover techniques for finding, moving, and rearranging files, look at file objects themselves, and then cover some of the standard Python idioms for reading and writing them. Then we look at techniques for starting, stopping, and generally working with processes.