This lesson is included with Plus.
Construct portable paths with `pathlib`, open text and binary files with context managers, and choose an explicit text encoding. Read or write data without leaking file handles or relying on a fragile working directory.