I can open and read the content of a single text file using the following line of code.
How can I read through multiple files in a directory? as I would like to compare them based on the similarity of their content (textual content). Any suggests? thanks.
Code:
f = open('C:\\xyz.text', 'r')
f.read()
Comment