Kent Johnson wrote: >Do you explicitly close the output file? If not, the data may not be >actually written. > > Kent,
You're right, I realised after playing with Tim's example that the problem was that I wasn't calling close() on the codecs file. Adding this after the f.write(html_text) seems to flush the buffer which means that the content now gets written to the file. Thanks for your help, Frank. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor