Dec-10-2021, 12:09 PM
Thank you all for your comments and time. In my case it works well
I also decided to remove punctuation in my text files to not have the problems referred by supuflounder.
Thank you!
output.writerow([(txt_file), line.replace ('\n', ' ')])as suggested by BashBedlam.
I also decided to remove punctuation in my text files to not have the problems referred by supuflounder.
Thank you!