Reading and Writing FilesText and binary file I/O, resource lifetimes, streaming, formats, failures, and safer writes.