i have a file.txt and i just want to keep all alphabetic and numeric characters without whitespace and save it in a list, is there another way to do it? this is the new code, is faster. what do you think about it?
fin = open(fcompiti, encoding = 'UTF-8')
s = fin.read()
s = s.replace(' ', '').replace('\n','')