Open files with context managers