On Mon, 2001-09-10 at 14:05, Adam Warner wrote: > thefile=open('aaa123.doc','w') > thefile.write(str(inputdoc.data)) > thefile.close The answer is simple. Being a Python newbie at first I didn't notice the problem. The last line should read: thefile.close() Then the file actually closes and everything works :-) Regards, Adam