using #storeOn:
Torge Husfeldt
jean-jaques.gelee at gmx.de
Wed Dec 8 13:57:01 UTC 1999
Jaso wrote:
----- Original Message -----
From: Jason McVay <jmcvay at ipa.net>
To: squeak <squeak at cs.uiuc.edu>
Sent: Wednesday, December 08, 1999 1:39 PM
Subject: using #storeOn:
> i used #storeOn: to file out a Dictionary. how do i file it back in,
> restoring the Dictionary? (i've done the simple #entireContentsOfFile, but
> of course all i got was a String).
>
> thanks
> jason
>
The method comment in Object>storeOn:
says the following:
"Append to the argument aStream a sequence of characters that is an
expression whose evaluation creates an object similar to the receiver."
This leads me to think that
Compiler evaluate: aStream contents
is the Right way to do it. I tested this just for Characters
but as long as the code is not broken this should work for any Object that
supports being stored on a Stream.
Regards, Torge
More information about the Squeak-dev
mailing list
|