python code to fetch all the files with txt extension from a folder code example
Example: python code to fetch all the files with txt extension from a folder
import glob, os.
os. chdir("/mydir")
for file in glob. glob("*.txt"):
print(file)
import glob, os.
os. chdir("/mydir")
for file in glob. glob("*.txt"):
print(file)