File Management Macros

These macros automate the opening and closing of files.