<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_listing_to_textfile(textfile, tracklisting):
 """Write tracklisting to a text file."""

    with codecs.open(textfile, 'wb', 'utf-8') as text:
        text.write(tracklisting)