I have a folder full of opinions in .txt files, i would like to read the complete folder and print each rawtext.txt in a format that let me read them one by one. How could i aproach this task?. Also when i read the complete folder with:
import os
DIR = r"/Users/user/Desktop/OpinionsTXT"
opiniones = [open(os.path.join(DIR, f)).read() for f in os.listdir(DIR)]
print opiniones
this is the output string:
f qu\xe9 suplicio, recordando cuando lo hab\xeda tenido que hacer durante unas
The texts are full of accents and spanish ortographic symbols, how to print them correctly?