> I've tried this and I cannot figure out why this does not work. So what happens? And how are you closing the file?
> open(item,'w').write(open(item,'r').read().replace(' ','')) I can't see the obvious flaw, but using anonymous files(*) is not a good idea IMHO. (*)Unlike anonymous functions ;-) Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor