•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 402,056 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,342 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser: Programming Forums
Views: 279 | Replies: 1
![]() |
With Python that is a simple task:
python Syntax (Toggle Plain Text)
import os # list just the files in a given folder folder = 'C:/Temp' for (paths, dirs, files) in os.walk(folder): # testing, this shows a list of filenames print files # now loop through the list of filenames for filename in files: # testing print filename # now enter code to process each of your files # ...
Never argue with idiots, they'll just bring you down to their level and beat you with their experience.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Python Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Starting Python (Python)
- how to search in parent file and proplem to integrat to GUI( non english txt)PLZ help (Python)
- How to sort word (from file) frequancy in decrease order? I need help (Python)
- Web server created in python (Python)
- backdoor.huai (Viruses, Spyware and other Nasties)
- Setting directory for opening files (Python)
- Putting Databases onto Pages (MySQL)
Other Threads in the Python Forum
- Previous Thread: http_class
- Next Thread: Finding .CSV averages


Linear Mode