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
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
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
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
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
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