Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!nntp.club.cc.cmu.edu!hudson.lm.com!newsfeed.pitt.edu!gatech!howland.reston.ans.net!news.sprintlink.net!news.tyrell.net!tyrell.net!shutts
From: shutts@tyrell.net (Todd Shutts)
Subject: Restoring a Dictionary
X-Nntp-Posting-Host: tyrell.net
Message-ID: <D4nyEy.7I9@tyrell.net>
Sender: news@tyrell.net (*)
Organization: Tyrell Corporation - 800-TYRELL-1 - POP's in 504/816/913/316
X-Newsreader: TIN [version 1.2 PL2]
Date: Mon, 27 Feb 1995 14:47:21 GMT
Lines: 24


I am using Visual Smalltalk on OS/2.  I have saved an instance of a
dictionary to a file using

|outfile|
outfile := File pathName: 'test.dat'.
dict storeOn: outfile.


The file is written out, looks good.

I tried to read it back using:

| infile d |
infile := (File fromPath: 'test.dat' ) readStream.
d := infile fileIn.


d is then a FileStream.  How do I restore the instance of the Dictionary.

Thanks,
-tfs
--
Todd Shutts -- shutts@tyrell.net
