[Newbies] closing WriteStream?
***
Mr. Timothy C. Johnson tjohnson at iwu.edu Wed Nov 26 01:10:46 UTC 2008
Hi,
Do I need to worry about closing a WriteStream? Currently I am working like this:
buildStatementFor: anObject | statement | statement := String new writeStream. [ statement nextPutAll: 'bla bla bla'. ^ statement contents. ] ensure: statement close
... is that not needed?
***
Look at #streamContents: (and its 300+ senders) for a really popular way of doing what you want.
Yours in curiosity and service, --Jerome Peace
beginners@lists.squeakfoundation.org