Re: Read a group of files as a list

2006-09-18 Thread citlaly
Thanks Steven! I'll check it!! Saludos!! Citlalyy -- http://mail.python.org/mailman/listinfo/python-list

Re: Read a group of files as a list

2006-09-18 Thread citlaly
Thanks Steven! I'll check it!! Saludos!! -- http://mail.python.org/mailman/listinfo/python-list

Re: Read a group of files as a list

2006-09-18 Thread citlaly
Thanks a lot Bearophile!! It works great! Well, it seems something easy for experts, but for beginners as me, your help is very useful... thanks!! Citlalyy > > >>> import os > >>> os.listdir("...path...") > [ file names... ] > > If you are using Windows I suggest you to invert the slashes of t

Re: Read a group of files as a list

2006-09-18 Thread Steve Holden
citlaly wrote: > Hi!! > I'm a beginner in python and I'm trying to use the files from a > "folder" as a list. What I want to do is read each one as a list, but > just the name of the file, the data inside doesn't matter. How can I do > it? I was trying using a list, but I don't know how "convert"

Re: Read a group of files as a list

2006-09-18 Thread bearophileHUGS
citlaly: > I'm trying to use the files from a > "folder" as a list. What I want to do is read each one as a list, but > just the name of the file, the data inside doesn't matter. >>> import os >>> os.listdir("...path...") [ file names... ] If you are using Windows I suggest you to invert the

Re: Read a group of files as a list

2006-09-18 Thread Calvin Spealman
On 18 Sep 2006 17:09:22 -0700, citlaly <[EMAIL PROTECTED]> wrote: > Hi!! > I'm a beginner in python and I'm trying to use the files from a > "folder" as a list. What I want to do is read each one as a list, but > just the name of the file, the data inside doesn't matter. How can I do > it? I was