Re: [Pharo-users] Zinc downloadTo: help required

2012-08-03 Thread Stéphane Ducasse
excellent I'm slowly back to live and I will start to integrate more so that esteban can do something more exciting. Stef On Aug 3, 2012, at 10:55 PM, Sven Van Caekenberghe wrote: > Hi Chris, > > Thanks again for testing and for suggesting the fix. > > ZnUtils>>#streamFrom:to: without the siz

Re: [Pharo-users] Zinc downloadTo: help required

2012-08-03 Thread Sven Van Caekenberghe
Hi Chris, Thanks again for testing and for suggesting the fix. ZnUtils>>#streamFrom:to: without the size is a new method that was not yet covered by a unit test, I added one now. Stef, I will update the issue: Zn can be updated now in Pharo 2.0 (and maybe in 1.4 as well). Sven On 03 Aug 201

Re: [Pharo-users] Zinc downloadTo: help required

2012-08-03 Thread Chris
Almost! I had to change ZnUtils class>>#streamFrom:to: to say readCount := inputStream readInto: buffer startingAt: 1 count: buffer size rather than startingAt: 0. Otherwise ZnChunkedReadStream>>#readInto:startingAt:count: had an offset and read of 0 first time in and failed on the ByteArray

Re: [Pharo-users] iterating through an ascii file line by line

2012-08-03 Thread S Krish
fileStream := ... stream on the ascii file... [ fileStream atEnd ] whileFalse: [ str := fileStream upTo: Character cr . ... ] upTo: Character lf *or *upToAll: String crlf as per OS.. or make it even more generic to work across all OS ... On Tue, Jul 31, 2012 at 10:00 PM, Paul DeBruick