Use with-files to test file access