<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write(entries):
 """ Write an entire rc file. """

    try:
        with open(get_rc_path(), 'w') as rc:
            rc.writelines(entries)
    except IOError:
        print('Error writing your ~/.vacationrc file!')