Nicolas Cellier uploaded a new version of Files to project The Trunk:
http://source.squeak.org/trunk/Files-nice.72.mcz==================== Summary ====================
Name: Files-nice.72
Author: nice
Time: 15 March 2010, 8:39:38.608 pm
UUID: dda7bf6c-afe6-8340-8ecf-3037fab9f3ae
Ancestors: Files-nice.71
Fix StandardFileStream >>readInto:startingAt:count:
It did answer size of buffer rather than number of bytes read.
=============== Diff against Files-nice.71 ===============
Item was changed:
----- Method: StandardFileStream>>readInto:startingAt:count: (in category 'read, write, position') -----
readInto: byteArray startingAt: startIndex count: count
"Read into the given array as specified, and return the count
actually transferred. index and count are in units of bytes or
longs depending on whether the array is Bitmap, String or ByteArray"
+ ^(self next: count into: byteArray startingAt: startIndex) size - startIndex + 1 min: count
- ^(self next: count into: byteArray startingAt: startIndex) size - startIndex + 1
!