[new] ObjectFiler in Squeak - Persistency of OrderedCollections

Martín Altobello martin_altobello at yahoo.com.ar
Sun Jan 27 15:46:40 UTC 2002


Hi,

We've been learning Smalltalk and using SmallTalk Express and Squeak at classes in school last year, with the goal to develop a "chemistry simulation" program in Squeak. 

My question is: What's the Squeak implementation of "ObjectFiler" (as seen in SmalltalkExpress)? in Smalltalk Express we could save and retreive OrderedCollections from disk as follow:

test := ObjectFiler loadAllFromPathName: 'test.dat'.
ObjectFiler dumpAll: test newFile:'c:\temp\test.dat'.

This was great because it allowed us to save OrderedCollections containing many different objects, etc.

How can I do that in Squeak? I've read in Mark Guzdial's book about FileStream but it is my understanding that FileStream works with Strings? I'd like to save and retreive OrderedCollections containing instancies of my own classes, Strings and ImageMorphs (saving ImageMorphs in OrderedCollections would really solve many of my problems). I've also read about the MineStore proyect but I'd like to do this using the equivalent Squeak implementation of Smalltalk Express ObjectFiler.

I apologize if this question is "off topic" or "newbie type", but I'd really apreaciate help on this.

Many thanks,

Martín
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020127/3e8a7aed/attachment.htm


More information about the Squeak-dev mailing list