On Wed, 2008-07-09 at 00:00 -0400, Ben Keshet wrote:
oops, my mistake, actually it didn't work...I believe it's because x is the position marker what you want instead is
when I tried:
for x in folders:
print x # print the current folder
filename='Folder/%s/myfile.txt' %x
f=open(filename,'r')
it says: IOError: [Errno 2] No such file or directory:
'Folder/1/myfile.txt'
the contents of folders at x; therefore folders[x]
HTH,
Tim
--
Timothy Cook, MSc
Health Informatics Research & Development Services
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
Skype ID == timothy.cook
************************************************** ************
*You may get my Public GPG key from popular keyservers or *
*from this link http://timothywayne.cook.googlepages.com/home*
************************************************** ************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQBIdJQO2TFRV0OoZwMRAqntAKDMHzg+debOI82g0+SRXC lOLUGVewCff29C
C44vb9ffPU1WW7/5R8udU7U=
=6FP3
-----END PGP SIGNATURE-----