[Newbies] capturing output in memory

Randal L. Schwartz merlyn at stonehenge.com
Wed Oct 1 22:58:23 UTC 2008


>>>>> "Randal" == Randal L Schwartz <merlyn at stonehenge.com> writes:

Randal> myStream = WriteStream new.

Sorry.  (WriteStream on: '')

Randal> " use myStream as if it were a FileStream "
Randal> myString := myStream contents.

Randal> That's the nice part about the various protocol families.  It mostly just
Randal> works.

Randal> -- 
Randal> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
Randal> <merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Randal> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
Randal> See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion


More information about the Beginners mailing list