[Zope] File content read

Dieter Maurer dieter@handshake.de
Mon, 17 Mar 2003 21:36:28 +0100


Chatton Sylvain wrote at 2003-3-17 10:37 GMT:
 > I'm searching the way to read the content of a file (ascii), from a script. The file is stored into a Zope folder.

"OFS.Image.File" objects return their content via "str". Thus,
when you convert a File object into a string, you get the file content).

This is not true for the derived class "Image".

You can use the "read" method in both cases.


Dieter