Hi,

Relatively newcomer here.
The following code fails with the above error:
python version used 2.6.2 under linux

filestring='somestring'
for files in glob.glob('*'):
        f2=open(files.replace('.xml','.sub'),'w')
        f2.write(filestring+files)
        f2.close()


The glob commands returns around 10k files.
I want to create 10k new files. the filename should have a different extension 
(sub instead of xml)and the content of the new file should be some filestring 
with the addition of the original filename.

I am pretty sure that the files is less than 1kB. Is there another reason for 
the operation to fail?

Any other comments,remarks welcomed. 

Thanks,
Makis
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to