Hi Raymond,

the easy part is:
|file|
file := StandardFileStream forceNewFileNamed: 'yourFilename'.
file nextPutAll: 'your collections contents as a String'
file close.

The hard part is how to print your collection (and if necessary its elements) as a string. You add to the stream with file nextPut: for single charcters or nextPutAll: for Strings.

You'd need to give some details about your collection for more help.

Cheers,

Herbert



Am 27.03.2015 um 15:57 schrieb Raymond Asselin:
I get an app that I made in Squeak. I would like to print the content of some 
OrderedCollection but don't know how to do that.
I thought to us a FileStream but never worked with Stream before any clue or 
reference is welcome.
My objectif is to print a list of my orderedCollection. I want a hard copy...

Raymond Asselin_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to