[Newbies] Exporting Object Memory
Edgar J. De Cleene
edgardec2001 at yahoo.com.ar
Mon Dec 17 18:56:34 UTC 2007
El 12/17/07 12:57 PM, "Chris Cunnington" <cunnington at sympatico.ca> escribió:
> If I had data in object memory, because I've saved answers from a user into
> objects, then can I file out that information? If I had to send it to
> somebody as an csv file, how could I do that easily?
To Herbert and David advice I add:
You could export any object as
anObject saveOnFile (you could inspect any object and do self saveOnFile
from inside Inspector)
And read again
| inputStream anObject |
inputStream _ FileStream oldFileNamed: 'Preferences.obj'. (I use this for
have Peferences in MinimalMorphic "
anObject _ inputStream fileInObjectAndCode.
inputStream close.
But for this, the original .image and the target .image should be
compatible, for complicated objects like Morphs.
You can't save from 3.10 and read back on 3.9 , as example.
You should play safe with same version Squeak.
Edgar
More information about the Beginners
mailing list