Re: Need Script For read multiple files(.txt) from a folder

2008-03-14 Thread jai_python
On Mar 14, 9:45 pm, Jeff Schwab <[EMAIL PROTECTED]> wrote: > Chris wrote: > > On Mar 14, 8:36 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > >> On Thu, 13 Mar 2008 21:28:18 -0700 (PDT), jai_python > >> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > >>> hi frenz I Need a P

Re: Need Script For read multiple files(.txt) from a folder

2008-03-14 Thread Jeff Schwab
Chris wrote: > On Mar 14, 8:36 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >> On Thu, 13 Mar 2008 21:28:18 -0700 (PDT), jai_python >> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: >> >>> hi frenz I Need a Python Script For read multiple files(.txt) from a >>> folder and wri

Re: Need Script For read multiple files(.txt) from a folder

2008-03-14 Thread martin . laloux
use the glob module import os, glob dor = the path you want for dir, subdir, files in os.walk(dor): for file in files: if glob.fnmatch.fnmatch(file,"*.txt"): do what you want -- http://mail.python.org/mailman/listinfo/python-list

Re: Need Script For read multiple files(.txt) from a folder

2008-03-14 Thread Chris
On Mar 14, 8:36 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Thu, 13 Mar 2008 21:28:18 -0700 (PDT), jai_python > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > hi frenz I  Need a Python Script For read multiple files(.txt) from a > > folder and write it in a single

Re: Need Script For read multiple files(.txt) from a folder

2008-03-13 Thread Chris
On Mar 14, 6:28 am, jai_python <[EMAIL PROTECTED]> wrote: > hi frenz I  Need a Python Script For read multiple files(.txt) from a > folder and write it in a single text file > > Thanks Take a look at the OS Module for the listdir funtion, you can use it to build a list of all files in the give

Need Script For read multiple files(.txt) from a folder

2008-03-13 Thread jai_python
hi frenz I Need a Python Script For read multiple files(.txt) from a folder and write it in a single text file Thanks -- http://mail.python.org/mailman/listinfo/python-list