> The easiest way to save chunks of connected data is probably using
> ImageSegments.
Not necessarily (I'm just waking up). You can use the SmartRefStream
perhaps a bit easier.
http://minnow.cc.gatech.edu/squeak/2318
For instance, here's how VMMaker saves its config data:
saveConfigurationTo: aFile
"write info about the current configuration to a file."
| fileStream |
fileStream _ FileStream newFileNamed: aFile.
fileStream fileOutClass: nil andObject: self configurationInfo
and how it reads the data back:
readConfigurationFrom: aFileName
"read info about the current configuration from a file. Return the
array that would have been made by #configurationInfo"
| fileStream |
fileStream _ FileStream oldFileNamed: aFileName.
^fileStream fileInObjectAndCode