Answers for "python code to fetch all the files with txt extension from a folder"

0

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)
Posted by: Guest on April-30-2021

Code answers related to "python code to fetch all the files with txt extension from a folder"

Python Answers by Framework

Browse Popular Code Answers by Language