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 slashes of the
path, so instead of:
"C:\WINNT\Fonts"
Use:
"C:/WINNT/Fonts"
Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list
