Utility procs for file operations.