I have output functions that output data from different objects to their corresponding files. Most of these functions follow the same pattern, the only differences are the o