Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!nntp.club.cc.cmu.edu!goldenapple.srv.cs.cmu.edu!das-news2.harvard.edu!fas-news.harvard.edu!oitnews.harvard.edu!news.dfci.harvard.edu!camelot.ccs.neu.edu!news.mathworks.com!uunet!in2.uu.net!uucp5.uu.net!world!carlg
From: carlg@world.std.com (Carl E Gundel)
Subject: Re: SE Storage using ObjectFiler
Message-ID: <E8EI52.6EK@world.std.com>
Organization: The World, Public Access Internet, Brookline, MA
X-Newsreader: TIN [version 1.2 PL2]
References: <5ierf1$e6o$1@mhadf.production.compuserve.com>
Date: Thu, 10 Apr 1997 02:41:25 GMT
Lines: 20

Robert Wingate (73211.2104@CompuServe.COM) wrote:
: How do I get the file reloaded when I reopen the application? 
: I've tried this:
:    ObjectFiler loadFromPathName: 'C:\CONTACTS.DB'

The loadFromPathName: method returns an instance of OrderedCollection
on the objects stored in the file. If you've only stored one object in
your file CONTACTS.DB, then your code should look like this:

    | dict |
    dict := (ObjectFiler loadFromPathName: 'C:\CONTACTS.DB') first.

Hope this helps,

Carl
-- 
------------------------------------------------------------------
 Carl Gundel  carlg@world.std.com  Shoptalk Systems  508-872-5315
 author of Liberty BASIC, a 1996 PC Magazine Awards Finalist!
 http://world.std.com/~carlg/basic.html
