with open("SFPrintLabel.txt", "w+") as myfile: myfile.write(file_line_last01) myfile.write(long_info) myfile.close()