[Zope] readinf File contents

Michel Pelletier michel@digicool.com
Wed, 5 Jan 2000 13:07:30 -0500


> -----Original Message-----
> From: Richard Smol [mailto:jazzcat@dds.nl]
> Sent: Wednesday, January 05, 2000 12:38 PM
> To: zope@zope.org
> Subject: [Zope] readinf File contents
> 
> 
> Hi there,
> 
> This Zope keeps baffling me ... now how do I simply read the 
> contents of 
> a File-object?

fileObject.data or str(fileObject)

Referencing a file object by name from python will not return it's
contents, it will return the object.  The object does not, nor should
it, act or look like a string, which is what re.split expects.

-Michel