def append_to_file(file_name, line_data):
with open(file_name, mode='<STR_LIT:a>', encoding='<STR_LIT:utf-8>') as f1:<EOL><INDENT>f1.write(line_data)<EOL>f1.write("<STR_LIT:\n>")<EOL><DEDENT>
append a line of text to a file