<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _save(file, data, mode='w+'):
 """ Write all data to created file. Also overwrite previous file. """

    with open(file, mode) as fh:
        fh.write(data)