anObject readStream
anObject writeStream
Collection streamContents: [:stream | ... ]
(Read/Write)Stream on: aCollection
next
upTo: anObject
upToEnd
nextPut: anElement
nextPutAll: aCollection
next
, upTo: anObject
, upToEnd
nexPut:
, nextPutAll:
When you want to create a collection by writing to a stream:
is equivalent to
Both scripts return a collection with number 1 inside.
/