Sorry for being vague. Here's an example of what I want to do.
import pprint
pprint.pprint(o pen(r'c:\text\s omefile.txt').r eadlines())
And kaarthikeyaprey an. I think you have it but I don't know how to execute it. I put all of that into a .py file and then what do I do. I also tried typing it out in the Command Line but at the end I just get the ... and nothing happens. Was the directory name the only thing...
User Profile
Collapse
-
How to print all files in a folder?
Hello. I was wondering how to print all the files in a folder. If possible, could it be like Python prints one file and waits for a confirmation and then moves to the next? By the way, by print, I don't mean like printer paper stuff. I mean by Python writes the stuff out in the Command Prompt thing. My friend told me print in language doesn't mean print as in paper and ink. I use Windows2k and Python 2.5. Thanks in advanced.
No activity results to display
Show More
Leave a comment: