Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import glob
- import os
- text = []
- file_path = 'filepath'
- for filename in glob.glob(os.path.join(file_path, '*.txt')):
- with open(filename, 'r', encoding = "ISO-885901") as infile:
- text.append(infile.read())
Add Comment
Please, Sign In to add comment