Re: [Tutor] Reading Files and Such

2008-10-09 Thread Alan Gauld
"Wayne Watson" <[EMAIL PROTECTED]> wrote Yes, listdir does not read files, it just prepares a list of all files in the folder. I work my way through them as needed. It looks like glob does something similar. Yes but glob can use wildcards to select only files matching the pattern (eg *.txt t

Re: [Tutor] Reading Files and Such

2008-10-09 Thread Wayne Watson
Title: Signature.html bob gailer wrote: Wayne Watson wrote: I have a Python application that requires the program be run in a specific folder, Win XP. It analyzes and modifies txt files there, and only txt files. The mods require creating a tmp file. The tmp files could just as well be a

Re: [Tutor] Reading Files and Such

2008-10-04 Thread bob gailer
Jaggo wrote: So, am I to understand from this lack of response there be *no particular reason* to use Temp file? AFAIC there is no particular reason to use Temp file. It is a convenience for those of us who need temp files and don't want to bother creating unique names. -- Bob Gailer Chapel

Re: [Tutor] Reading Files and Such

2008-09-29 Thread bob gailer
Wayne Watson wrote: I have a Python application that requires the program be run in a specific folder, Win XP. It analyzes and modifies txt files there, and only txt files. The mods require creating a tmp file. The tmp files could just as well be an xyz suffix file. That is, it seems as though