So I wrote a Python scrip that would do a certain thing to a certain .txt
file:
with open("1.txt") as f:
for line in f:
#DoStuff
Now this works for 1 .txt
file.
I have One master folder, in the master folder I have different other folders, and in each folder I also have several .txt
files.
How can I iterate over all this to apply my script to every .txt
file in every folder in the master file?.