On Mon, 08 May 2006 11:23:28 -0700, tkpmep wrote: > I create list of files, open each file in turn, skip past all the blank > lines, and then process the first line that starts with a number (see > code below)
Here is what I suggest for you: filenames=glob.glob("C:/*.txt") for fn in filenames: for line in open(fn): if line[0] in digits: ProcessLine(line) break -- Steve R. Hastings "Vita est" [EMAIL PROTECTED] http://www.blarg.net/~steveha -- http://mail.python.org/mailman/listinfo/python-list