code: def write(entries):
      
      try:
          with open(get_rc_path(), 'w') as rc:
              rc.writelines(entries)
      except IOError:
          print('Error writing your ~/.vacationrc file!')
docs: Write an entire rc file.