[Zope] Accessing Files within Zope?

Casey Duncan casey@zope.com
Fri, 5 Jul 2002 12:34:17 -0400

On Friday 05 July 2002 11:48 am, Laurie Nason wrote:
> I just did this with a file:
>     my_file =3D split(file.data,'\r\n')
> the .data returns the contents of the file
> hth
> Laurie

BTW file.data is only the first chunk of the file's data (currently 64Kb =
size). So the above will truncate a file to 64K. To get the entire conten=
of a file object, use:

data =3D str(file)