File Open, Read, and Write
Read and write text files safely with context managers.
Paths, Folders, and File Management
Create, inspect, copy, move, and remove files with pathlib and shutil.
try, except, else, and finally
Handle errors deliberately and keep cleanup logic reliable.
JSON Files and Validation
Read and write JSON files while checking required keys and value types.
Safe File Updates
Avoid partial writes by using temporary files, backups, and explicit encodings.