Open, write and read files with Python. Learn how file modes affect existing content and how text becomes bytes.
Labs in this module
What happens when Python opens a file? - Open a file, inspect its descriptor, write and read UTF-8 text, and change a program to preserve existing content.