python read all text from text files in directory code example Example: python glob how to read all txt files in folder import glob glob.glob('*.txt')