[Newbies] Re: closing WriteStream?
Jerome Peace
peace_the_dreamer at yahoo.com
Wed Nov 26 03:09:39 UTC 2008
[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
More information about the Beginners
mailing list