Marcel Taeumel uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-mt.704.mcz==================== Summary ====================
Name: Collections-mt.704
Author: mt
Time: 11 August 2016, 2:58:37.39736 pm
UUID: bc70536e-2c54-5247-acc6-3422b7d7c748
Ancestors: Collections-mt.703
In preparation for showing the release notes on a help page, make TextReadWriter interface more like ImageReadWriter interface.
=============== Diff against Collections-mt.703 ===============
Item was added:
+ ----- Method: TextReadWriter class>>textFromFileNamed: (in category 'instance creation') -----
+ textFromFileNamed: fileName
+
+ ^ self textFromStream: (FileStream readOnlyFileNamed: fileName)!
Item was added:
+ ----- Method: TextReadWriter class>>textFromStream: (in category 'instance creation') -----
+ textFromStream: aBinaryStream
+
+ | reader readerClass text |
+ readerClass := self. "no auto-detection yet"
+ aBinaryStream reset.
+ reader := readerClass new on: aBinaryStream.
+ Cursor read showWhile: [
+ text := reader nextText.
+ reader close].
+ ^ text
+ !
Item was added:
+ ----- Method: TextReadWriter>>close (in category 'initialize-release') -----
+ close
+
+ stream close.!