Add convenience function to read tempdir files.