[ZPT] Reading a file

Evan Simpson evan at 4-am.com
Thu Aug 5 10:46:59 EDT 2004


Larry Wright wrote:
> Hmm, but then what?

Then nothing ;-)

When you convert the File object with str(), you have the contents of 
the File as a string -- what you would get from the filesystem with 
open('foo').read().  You're done.

Cheers,

Evan @ 4-am


More information about the ZPT mailing list