for simple matter you can use storeOn:/ readFrom protocol store one element per line and use readFrom: one each line to load back On Aug 17, 2009, at 12:49 PM, John Escobedo wrote:
I'm having trouble finding out if classic squeak methods work in this case.
Can anyone recommend a best practice if I have an object that holds a large, procedurally created, orderedCollection and I want to be able to read/write it from a file (text or binary)?
Specifically. I have an object called "PrimeBank", that holds a huge set of prime numbers. Its methods can grow this set at any time. As the set gets larger, I'd like to be able to write it out to a file and read it in when I'm running the code on another image.
Ideally I think I'd like the file to be human readable and editable.
- John E.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project