<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_text(_command, txt_file):
 """Dump SQL command to a text file."""

    command = _command.strip()
    with open(txt_file, 'w') as txt:
        txt.writelines(command)