# Hunter Schafer, hschafer # A short program showing how to work with files import os def main(): for file_name in os.listdir('test-dir'): print(file_name) # Just the file name itself print('--------------') # Need to prepend with the path of the directory with open('test-dir/' + file_name) as f: print(f.read()) print() print() if __name__ == '__main__': main()