Use with (open) as to auto-close file pointers