def list_to_file(orig_list, file_name, file_location):
file = __os.path.join(file_location, file_name)<EOL>def add_line_break(list_line):<EOL><INDENT>"""<STR_LIT>"""<EOL>list_line = ('<STR_LIT>' % (list_line,))<EOL>return list_line<EOL><DEDENT>write_file = open(file, "<STR_LIT:a>")<EOL>for orig_list_line in orig_list:<EOL><INDENT>write_file.write(add_line_break(str(orig_list_line)))<EOL><DEDENT>write_file.close()<EOL>return file_name<EOL>
Function to export a list to a text file
Args:
    orig_list: The list you want exported
    file_name: The name of the exported file
    file_location: The location of the file, derive from the os module

Returns: returns the filename info